FanaroEngineering / fanaro.io

Where I expose cool stuff about Go (Baduk or Weiqi), programming, productivity, psychology, philosophy, etc.
https://fanaro.io
Other
6 stars 6 forks source link

Footnotes don't work with LaTeX (MathJax) #7

Closed psygo closed 3 years ago

psygo commented 3 years ago

Currently, the encoding of stuff like \[ is raw, so it isn't read by the MathJax scripts, even if they come after the main index.js and use defer. Maybe including the MathJax scripts into the footnotes (with a parameter due to the script being heavy) will solve the issue.

psygo commented 3 years ago

Maybe if I put the LaTeX text inside a MathJax tag that would work? Because the <foot-note> element does take innerHTML and not innerText, I think.

psygo commented 3 years ago

I think that I might have fixed this accidentally at some point because it is working right now. Just add something like \(1 + 1 = 2\) to a <foot-note>.