Which browsers do support MathML?

社会主义新天地 提交于 2020-05-27 03:59:17

问题


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


回答1:


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.




回答2:


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">



回答3:


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.

If you are a Macintosh user, Pale Moon is not yet available 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.

Version 52 of Firefox is distorting less that symbol than former versions, but Pale Moon or ancient Firefox renders better.



来源:https://stackoverflow.com/questions/5865522/which-browsers-do-support-mathml

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!