Rendering MathJax / MathML at compilation / preprocessing to create an HTML file without MathML?

I have several web pages that make heavy use of MathJax (or MathML?), Which I would like to convert to e-books and display on my Kindle, which does not support enough javascript or MathML. Therefore, I would like to preprocess the .html files, possibly by running MathJax at the preprocessing / compilation stage, to replace using MathML with HTML / CSS. Are there any tools that will do this for me?

+4
source share
1 answer

You would be better off replacing MathML with SVG rather than HTML-CSS. HTML-CSS MathJax output is different for different browsers, operating systems, font sizes, and several other factors, so if you save HTML code generated for one situation, it may not work correctly for another. SVG output is consistent across browsers.

There are people who have already worked on this. The svgtex project is one. Wikipedia developed Mathoid to do something similar.

+3
source

Source: https://habr.com/ru/post/1536352/


All Articles