CalebJohn / joplin-rich-markdown

Helping you ditch the markdown viewer for good.
MIT License
194 stars 11 forks source link

[Bug] superscript highlight readability in math mode #46

Open Jae0143 opened 2 years ago

Jae0143 commented 2 years ago

I like the idea of highlighting the superscript, but it is quite annoying when I'm typing math. Like attached, it recognizes "^" in different area as a syntax for superscript outside of math environment.

Screen Shot 2022-08-27 at 01 03 43
CalebJohn commented 2 years ago

I spent some time looking in to this and I think I will have to fix it by adding some functionality to Joplin. Basically, this plugin doesn't know whether or not it is looking at a tag inside a code block or not. I will add some code to Joplin that all text inside of katex blocks is labelled with katex (this will be beneficial for anyone applying styling). And then this plugin will be able to read that and ignore the inside of katex.

btw this is just a note for me so that I don't forget what I need to do.