polar-bookshelf icon indicating copy to clipboard operation
polar-bookshelf copied to clipboard

Render mathjax in user authored annotations

Open dyloxim opened this issue 4 years ago • 1 comments

Is your feature request related to a problem? Please describe. flashcards made in polar containing mathjax render correctly when imported into anki, however, when displayed as annotations within polar the un-rendered mathjax is almost unreadable.

Describe the solution you'd like Because Polar is an electron app, it shouldn't be too difficult to run mathjax on user annotations since it's just post-processing of a text area --- right?

Describe alternatives you've considered It doesn't have to be mathjax - but mathjax is the standard browser-latex-implementation as far as I can tell. Mathjax is what works with anki so it's the natural choice.

Screenshots A particularly gnarly bit of latex in a flashcard annotation (unreadable in polar): Screenshot 2020-10-30 at 20 03 20

The same flashcard successfully imported into anki: Screenshot 2020-10-30 at 20 03 54

The flashcard correctly rendered by anki (how ideally polar would render the mathjax within the annotation): Screenshot 2020-10-30 at 20 04 11

dyloxim avatar Oct 30 '20 20:10 dyloxim

We're working on adding native support for mathjax/latex and this will probably come in around the 2.1 timeframe. It's a bit more work because we have to refactor our text editor support.

burtonator avatar Nov 02 '20 18:11 burtonator