seagle0128 / grip-mode

Instant Github-flavored Markdown/Org preview using grip
GNU General Public License v3.0
269 stars 6 forks source link

Enable MathJax #29

Closed jaghili closed 9 months ago

jaghili commented 9 months ago

Dear @seagle0128,

thank you for your package, I am trying to use it as a Markdown live preview in the browser.

It seems to work fine, but i'd like to enable maths formulas during the preview, the formulas are not translated at all, they are left between $$...$$ or $...$ in the html.

I don't see any mathjax/katex script in the html source. I guess a first possibility is to add it inside <head> of the html template, I guess it is in /usr/lib/python3.11/site-packages/grip/templates/ but i am not sure how to do it properly.

Do you have any idea?

Thanks !

seagle0128 commented 9 months ago

It seems a feature requirement for grip engine itself. Please file an issue there.