On the one hand, I want to get rid of JS. On the other hand, I prefer to keep the plain text equation in my markdowns, rather than generating and linking to an image.
I feel like I'm one long weekend away from building my own SSG to do this.
On the one hand, I want to get rid of JS. On the other hand, I prefer to keep the plain text equation in my markdowns, rather than generating and linking to an image.
I feel like I'm one long weekend away from building my own SSG to do this.
~~~
pandoc -s --gladtex input.md -o myfile.htex
gladtex -d image_dir myfile.htex
# produces myfile.html and images in image_dir
~~~
KaTeX. https://katex.org/docs/api.html#server-side-rendering-or-ren...
Though not to SVG, see https://github.com/KaTeX/KaTeX/issues/375 tracking the progress.
MathJax, which uses MathML internally, claims to improve accessibility also for users of "bad" screenreaders. [1]
Apparently, you can use pandoc to convert markdown files with LaTeX equations to HTML with embedded MathML using "pandoc math.text -s --mathml -o mathMathML.html". [2]
[1] https://docs.mathjax.org/en/latest/basic/accessibility.html#...