Which browsers do support MathML?
We are going to start working on TeX to MathML translator soon. So, I am wondering which browsers (and starting开发者_高级运维 from what version) do officially support MathML? Thanks
Almost none, only Firefox and Safari can handle MathML.
See https://caniuse.com/mathml
But there is a workaround available that replaces the unsupported MathML formulas by HTML and CSS: MathJax.js
Simply put the JavaScript file into your web page and your page will show correctly on almost all browsers. On Firefox this is basically a no-op.
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.2/MathJax.js?config=MML_HTMLorMML">
Once you have done that you might think about switching back to TeX instead of MathML. This is supported by MathJax as well. TeX is older, shorter and functional superior to MathML, and well, similarly unreadable for humans.
In this case the script include should be
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.2/MathJax.js?config=TeX-AMS_CHTML">
There is a big table of browser support on Wikipedia.
At the time of writing, it seems only Firefox supports MathML natively of the big players.
I used Firefox for a long time, to view MathML documents, until I discover a distortion in square root symbol, specially when it was beside fractions with "tall" numerators and denominators. Then, I tried Pale Moon (last XP version) and discovered that the distortion did not happen with that browser.
For best rendering, go to Pale Moon Options|Advanced|General
settings and disable "Use Firefox Compatibility mode" checkbox (when this option is checked, it decreases the size of the characters in a fraction over fraction expression).
If you are a Macintosh user, this old version of Pale Moon does not exist for you platform, so try a very old version of Firefox. I tested version 24.8.1 and I saw that it renders the square root symbol very well.
精彩评论