Skip to content

MDX Extension for VSCode: Fixing coloring issue using $ #2174

Discussion options

You must be logged in to vote

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:

  1. the $ causes the grammar to think there is math, and switch to the math grammar
  2. there is a bug in the YAML grammar, which prevents it from handling $

@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?

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@rajbpatel96
Comment options

@ChristianMurphy
Comment options

Answer selected by ChristianMurphy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants