-
Notifications
You must be signed in to change notification settings - Fork 9
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
Code blocks inside JSX tags disrupt highlighting #22
Comments
/cc @silvenon If you are available to take a look at this... Doesn't look too easy to solve IMO, I don't have a solution on top of my head, so not sending a PR yet |
@favna If you think this has affected you significantly, you may want to wrap the entire Tabs in |
I just tried it in 1 document, but that removes all syntax highlighting except that of headers. It's not really much better IMHO. |
Don't wrap the entire document, just the broken |
Isn't this the same problem as #14? I'm very interested in a solution. I know nothing about textmate grammars but let me know if I can help. |
Yes, they are caused by the same reason, but are manifested differently and have different impacts IMO. In their case, the inline code is not getting any highlight whatsoever, while in this case, it's getting highlighted, but in a very incorrect way (the content is seen as JSX rather than MD) which prevents any succeeding text from being parsed correctly. If possible, I'd rather have the text between JSX tags treated as plain text with no highlighting at all. |
I have some experience with textmate but considering the current status of MDX (as you mentioned in #14) and how occupied I've been recently, I would wait for a few months before forking this and releasing my own extension if I got no response XD |
Two repros:
The text was updated successfully, but these errors were encountered: