-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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 Mirror syntax highlighting bugs #3440
Comments
@CalebJohn, do you think it's possible to add a special rule for Katex blocks, so that they are either highlighted as Katex, or highlighting is disabled within the block? Ace Editor handles this as expected: Also |
I just noticed that also |
@yadayadaydadaa Thanks for reporting these issues. Personally I disagree that katex is more broken than in the old editor (although your note does seem to be more broken!) I would say that it is just as broken :). Looking at @laurent22 's screenshot the old editor seems to fail in all the same locations (except the last one where it still fails but differently), but the highlighting is more subtle. I digress. This can be fixed as suggested by @laurent22 . I'll start looking into it right away. In regards to the And for |
As discussed in #3435 (comment), also relevant #3054, the syntax highlighter in Code Mirror has even more severe issues with latex-math and even other things than the basic editor. Here's an example
The text was updated successfully, but these errors were encountered: