-
Notifications
You must be signed in to change notification settings - Fork 1
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
MDX support #4
Comments
It supports component tags and jsx interpolation via curly praces as specified by Astro syntax specs. I would need to look into MDX specs to tell whether it's enough. I may look into supporting MDX at some point, but the proposed import implementation is not in the shape to be added here. Modern syntaxes should no longer use |
It appears supporting import/export statements in Markdown (Astro) is not enough to fully support MDX. Compared to CommonMark, MDX behaves completely different with regards to how content between "html" tags or components is treated. It allows weird things like markdown blocks within html tags, but without "indented raw blocks" being supported.
This is a fundamental difference to how current markdown syntax works. |
MDX support is planned to be provided by a dedicated package as it is unrelated to Astro. see: https://github.com/SublimeText/MDX It is requested for registration at packagecontrol.io as MDX to replace existing "MDX Syntax Highlighting" package. |
Does the markdown syntax also support MDX? it looks pretty good already.
I stumbled on some issues with another pkg brandonchinn178/sublime-mdx#1
This rule for highlighting import statements of the other pkg might be nice to add in this project
https://github.com/brandonchinn178/sublime-mdx/blob/main/MDX.sublime-syntax#L43-L48
The text was updated successfully, but these errors were encountered: