Description
I've created a content-mathml branch to add support for Content MathML (as usual, changes are only on the unpacked version). To load the extension, you must add
MathML: {
extensions: ["content-mathml.js"]
}
to your config file. The extension essentially adds a prefilterHook to the MathML input Jax: the script content is parsed, transformed by David Carlisle's XSLT stylesheet and serialized again (so that other prefilterHooks and the MathML input Jax can handle it later).
This seems to work well on all Opera, Chrome, Firefox and Safari. On Internet Explorer I had to use their non-standard ActiveX-based methods. On IE9, there is an issue with self-closing tags: the script content is already corrupted so I think that's a general problem with the interpretation of self-closing tag in HTML5.
The changes are:
https://github.com/fred-wang/MathJax/compare/fc7aa04...content-mathml
Two questions:
- do we want to load this extension automatically when content MathML tags are detected (e.g. if the source contains
<apply>
tag)? - should the stylesheet be applied when MathPlayer is installed?