
Native MathML by Frédéric Wang
Force MathJax/KaTeX/MediaWIki to use native MathML rendering and other options to rely further on native browser features.
Extension Metadata

Many web sites rely on MathML to display mathematical formulas but because some web engines do not support that language yet some fallback is necessary and native MathML rendering is not always used by default. This add-on tries and force web sites to switch to native MathML by performing the following action for each web page:
- Insert a CSS stylesheet to force MediaWiki in the MathML+SVG fallback mode to render its MathML output (since version 1.8).
- Insert a CSS stylesheet to force KaTeX >= 0.2 to render its MathML output (since version 1.7).
- Set a temporary MathJax menu-preference cookie (and delete it once the page is loaded) to force MathJax to use the Native MathML output.
Any MathML-aware accessible tool for Firefox/Seamonkey will be able to read the mathematics.
For web sites using MathJax, you won't have to use the MathJax menu and this will work even when that menu is disabled. Obviously, this is will greatly speed up the rendering since the remaining rendering lag will essentially only be due to MathJax loading its components, parsing equations and inserting the MathML.
Starting with version 1.4, the add-on also has some preference options to enable/disable advanced behaviors:
1) Preventing MathJax from overriding the browser user interface (zoom of formulas and context menu) in order to keep the browser native features, or those provided by other math add-ons (such as MathML Copy, MathML Zoom or MathML Font Settings)
2) Disabling MathJax's mml2jax preprocessor. This will speed up the rendering on Web sites that already use native MathML.
3) Fixing MathJax's NativeMML code to avoid some rendering and performance bugs.
It is recommended to install math fonts for best MathML rendering.
Examples of Web pages:
- Wikipedia Fourier transform
- ArXiv
- math.stackexchange
- Online derivative calculator
- CERN Document Server
- JavaScript plotting library
See also the Image to MathML add-on for an experimental add-on for web sites using raw images.
- Insert a CSS stylesheet to force MediaWiki in the MathML+SVG fallback mode to render its MathML output (since version 1.8).
- Insert a CSS stylesheet to force KaTeX >= 0.2 to render its MathML output (since version 1.7).
- Set a temporary MathJax menu-preference cookie (and delete it once the page is loaded) to force MathJax to use the Native MathML output.
Any MathML-aware accessible tool for Firefox/Seamonkey will be able to read the mathematics.
For web sites using MathJax, you won't have to use the MathJax menu and this will work even when that menu is disabled. Obviously, this is will greatly speed up the rendering since the remaining rendering lag will essentially only be due to MathJax loading its components, parsing equations and inserting the MathML.
Starting with version 1.4, the add-on also has some preference options to enable/disable advanced behaviors:
1) Preventing MathJax from overriding the browser user interface (zoom of formulas and context menu) in order to keep the browser native features, or those provided by other math add-ons (such as MathML Copy, MathML Zoom or MathML Font Settings)
2) Disabling MathJax's mml2jax preprocessor. This will speed up the rendering on Web sites that already use native MathML.
3) Fixing MathJax's NativeMML code to avoid some rendering and performance bugs.
It is recommended to install math fonts for best MathML rendering.
Examples of Web pages:
- Wikipedia Fourier transform
- ArXiv
- math.stackexchange
- Online derivative calculator
- CERN Document Server
- JavaScript plotting library
See also the Image to MathML add-on for an experimental add-on for web sites using raw images.
Report this add-on for abuse
If you think this add-on violates Mozilla's add-on policies or has security or privacy issues, please report these issues to Mozilla using this form.
Please don't use this form to report bugs or request add-on features; this report will be sent to Mozilla and not to the add-on developer.
The developer of this extension asks that you help support its continued development by making a small contribution.
- Add-on Links
- Version
- 1.9.5
- Size
- 30.55 KB
- Last updated
- 4 months ago (Dec 6, 2020)
- License
- Mozilla Public License, version 2.0
- Version History
- Even more forcibly show MathML in VisualEditor ( https://github.com/fred-wang/webextension-native-mathml/pull/15 )
- There are no ratings yet
- There are no ratings yet
- There are no ratings yet
- There are no ratings yet
- There are no ratings yet
- There are no ratings yet