MDX Extension for VSCode: Fixing coloring issue using $ #2174
Answered
by
ChristianMurphy
rajbpatel96
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
ChristianMurphy
Nov 15, 2022
Replies: 1 comment 2 replies
-
My understand is that when the highlighter, sees a different content type embedded in the MDX/markdown. Two likely things which could be happening:
@rajbpatel96 could you open an issue at https://github.com/mdx-js/vscode-mdx/issues? |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
ChristianMurphy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
My understand is that when the highlighter, sees a different content type embedded in the MDX/markdown.
It transitions to that language, here to the YAML language https://github.com/mdx-js/vscode-mdx/blob/a5d7c030e1120b6a8e827d028818352c7d9dc46e/package.json#L101
Two likely things which could be happening:
$
causes the grammar to think there is math, and switch to the math grammar$
@rajbpatel96 could you open an issue at https://github.com/mdx-js/vscode-mdx/issues?
And if you have interest maybe look into the issue, add some findings to the issue, and maybe open a PR with a fix?