Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which browsers do support MathML?

Tags:

browser

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

like image 810
ezpresso Avatar asked May 03 '11 05:05

ezpresso


2 Answers

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">
like image 117
Marcel Avatar answered Nov 03 '22 00:11

Marcel


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.

like image 38
alex Avatar answered Nov 03 '22 00:11

alex