Description
Firefox supports embedding MathML objects using the <object>
tag, with mime type application/mathml+xml
. Chromium doesn't support this, so it would be great to use MathJax for this.
This topic was discussed on the mailing list some time ago: https://groups.google.com/forum/#!msg/mathjax-users/5VOt3rJXHms/X1_ovYTCm5MJ, and led to a wiki page in MathJax-docs (https://github.com/mathjax/mathjax-docs/wiki/External-MathML-files-with--object--does-not-work-with-MathJax), but the solution posted there is for MathJax v2.
The feature request is for MathJax to replace <object>
s with type application/mathml+xml
with its own rendering.
Here is an example:
input.mml
<?xml version="1.0" encoding="UTF-8"?> <math xmlns="http://www.w3.org/1998/Math/MathML" alttext="1+2" display="block"> <mrow> <mn>1</mn> <mo>+</mo> <mn>2</mn> </mrow> </math>
- HTML source code
<object type="application/mathml+xml" data="input.mml"></object>
Alternatives: Including MathML directly works fine, but it's not as convenient for reusing math.