Sublime Forum

Invalid syntax highlight with underscores in Markdown and inside a MathJax equation

#1

Adding an underscore inside of a MathJax equation in a Markdown document results in a highlight for invalid syntax.

\\[ {I}_2 \\]

0 Likes

#2

The Markdown syntax definition that ST uses is currently compatible with CommonMark, with support for GitHub Formatted Markdown extensions and Footnotes from PHP’s Markdown Extra.

What tool are you using to convert your Markdown docs with MathJax to HTML or PDF or whatever?

Maybe you can wrap your MathJax in a <div> or something to prevent it being interpreted by ST as Markdown instructions.

0 Likes