Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The syntax highlighter gets confused after braces in subscript #123

Open
user799595 opened this issue Mar 17, 2022 · 2 comments
Open

The syntax highlighter gets confused after braces in subscript #123

user799595 opened this issue Mar 17, 2022 · 2 comments

Comments

@user799595
Copy link

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
@sleepymalc
Copy link

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.

@kinianlo
Copy link

kinianlo commented Feb 13, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants