mdmath icon indicating copy to clipboard operation
mdmath copied to clipboard

Nonumber (disable per-equation) line numbering in align environment not recognised.

Open carneeki opened this issue 4 years ago • 0 comments

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

  1. Use \nonumber in an align environment

Code example

$$
\begin{align}
\text{Let: } & \nonumber \\
e &= mc^2 \\
\frac{e}{m} &= c^2
\end{align}
$$

Steps to fix

  1. Open packages.json and look for the dependencies stanza.
  2. Replace the line containing katex with the line as follows
"katex": "^0.15",
  1. Run npm install
  2. Reload VSCode

Related links

Environment

     Operating system: Arch Linux
       VSCode version: 1.62.2
Markdown+Math version: 2.7.0

carneeki avatar Nov 13 '21 06:11 carneeki