mdmath icon indicating copy to clipboard operation
mdmath copied to clipboard

The syntax highlighter gets confused after braces in subscript

Open user799595 opened this issue 3 years ago • 2 comments

Actual behavior

image

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

user799595 avatar Mar 17 '22 14:03 user799595

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.

sleepymalc avatar Jul 28 '22 04:07 sleepymalc

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

kinianlo avatar Feb 13 '23 19:02 kinianlo