Skip to content

invalid math

Bhsd edited this page Oct 18, 2025 · 1 revision

❌ By default, this rule reports syntax errors in <math>, <chem> and <ce> tags using texvcjs. This rule is unavailable in the browser version of the package.

Examples

Examples of incorrect code for { "invalid-math": 2 }:

<math>a × b</math>
<math>#</math>
<math>\vec{a</math>
<math>\frac{a}</math>
<math>\begin{matrix} a</math>
<math>\begin{x}\end{x}</math>
<math>\x</math>
<math>\ce{H}</math>

Examples of correct code for { "invalid-math": 2 }:

<math>\vec a</math>
<math chem>\ce{H}</math>
<chem>\mathit{A} ->[\ce{H}] \mathit{B}</chem>

Clone this wiki locally