mdmath
mdmath copied to clipboard
The syntax highlighter gets confused after braces in subscript
Actual behavior

Code example
Let $T_{i, j}$ represent the entry in row $i$ and column $j$.
Environment
Operating system: macOS 12.3
VSCode version: 1.65.2
Markdown+Math version: v2.7.4
I have also encountered this, and this indeed causes a HUGE problem since my math snippets depend on the scope, and in this case, the scope is totally wrong and the snippet behaves randomly. This need to be fixed.
I am having exactly the same issues. I tried to disable Markdown+Math and the syntax highlighting was back to normal. It appears that the vscode has the correct built-in grammar for both single and double dollar signs. It might be a good idea just to use the built-in grammar instead of defining a custom one.
Operating system: macOS 13.0.1
VSCode version: 1.75.0
Markdown+Math version: v2.7.4