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

MDX support #38

Closed
Kamahl19 opened this issue Mar 13, 2024 · 1 comment
Closed

MDX support #38

Kamahl19 opened this issue Mar 13, 2024 · 1 comment

Comments

@Kamahl19
Copy link

What would it take to support an MDX format, basically a combination of TSX and MD? These 2 are mixed together without any indication of which line of code is which language.

@marijnh
Copy link
Contributor

marijnh commented Mar 13, 2024

I am not aware what kind of heuristics this format uses to distinguish the two languages, but yeah, this sounds like a very awkward file format to write a parser for. You'd probably want an outer parser that categorizes each line or block of lines as belonging to a given language, and then use mixed parsing to use the TS or Markdown parser for the appropriate lines.

@marijnh marijnh closed this as completed Mar 13, 2024
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

2 participants