Skip to content

Highlight MDX files as Markdown - #4242

Open
ISSOtm wants to merge 1 commit into
micro-editor:masterfrom
ISSOtm:patch-1
Open

ISSOtm wants to merge 1 commit into
micro-editor:masterfrom
ISSOtm:patch-1

Conversation

@ISSOtm

@ISSOtm ISSOtm commented Sep 23, 2026

Copy link
Copy Markdown

Since the syntax differs sometimes, this may break; but it seems preferable to show correct syntax for what can, and leave the user the option to ^E set syntax off if it really doesn't work for them?

Since the syntax differs sometimes, this may break;
but it seems preferable to show correct syntax for what can,
and leave the user the option to `^E set syntax off`
if it really doesn't work for them?

@Andriamanitra Andriamanitra left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think mdx should rather be its own filetype, possibly with include: markdown and/or include: jsx to inherit the rules. I'm not sure how bad the conflicts would be if it just included both but it's worth testing.

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

Successfully merging this pull request may close these issues.

2 participants