-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Desktop: Disable syntax highlighting inside Katex code #3054
Comments
That's probably tricky to fix as it seems to be a bug in Ace Editor itself, but if you have some ideas feel free to give it a try. |
Yep, the Ace editor has a few bugs in that regard. It also highlights italics in the middle of a word ( |
@Rishgod I guess you can do that. You can also add spaces near the If we can process Katex code like how comments are parsed in the Ace editor, we can maybe get the desired result? Katex blocks start with |
The problem is that At some point Devon added custom rules to override syntax highlighting there joplin/ElectronClient/gui/NoteText.jsx Line 58 in c5c379f
|
It looks pretty straight forward. I'll give this one a go. |
Yes, it's very similar to this one. |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may comment on the issue and I will leave it open. Thank you for your contributions. |
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information. |
When using
<
inside Katex, the editor falsely recognize it as a HTML tag and messes up syntax highlighting. See below:Use following snippet for reproducing:
Environment
Joplin version: 1.0.200
Platform: Linux
OS specifics: Ubuntu 19.10 (5.3.0-46-generic)
Steps to reproduce
Describe what you expected to happen
The editor should ignore
<
or other mathematical symbols inside Katex.The text was updated successfully, but these errors were encountered: