mdmath
mdmath copied to clipboard
Nonumber (disable per-equation) line numbering in align environment not recognised.
Summary
Using \nonumber in an align environment is not recognised. KaTeX says it is recognised since 0.15. Version bump to 0.15 in package.json fixes the issue.
Expected behavior
\nonumber to not number an equation in align environment.
Actual behavior
\nonumber rendered in red colour.
Steps to reproduce
- Use
\nonumberin an align environment
Code example
$$
\begin{align}
\text{Let: } & \nonumber \\
e &= mc^2 \\
\frac{e}{m} &= c^2
\end{align}
$$
Steps to fix
- Open
packages.jsonand look for thedependenciesstanza. - Replace the line containing
katexwith the line as follows
"katex": "^0.15",
- Run
npm install - Reload VSCode
Related links
Environment
Operating system: Arch Linux
VSCode version: 1.62.2
Markdown+Math version: 2.7.0