One subtask of enabling native MathML rendering from within the Math extension is that MathML (independent of the way how it was created) is delivered to the browser. Currently, MathML is only delivered if special browser plugins are enabled. I suggest the following plan:
- Update the description of the current default rendering option to reflect that effectively, most users see SVG images. patch
- Create a new MathML delivery option that outputs MathML, and client-side MathJax enabled (same configuration as in the wdqs-GUI)
Open questions:
- Can we bundle client-side MathJax in MediaWiki in the same way as it is done in the WDQS-GUI? (@LucasWerkmeister, do you know the answer?)
- Do we need additional code review if we ship MathJax?
- The file size of WDQS GUI is 5.32MB compared to 1.83 MB for the matrix . Can this be related to the bundling of MathJax?
- Should logged-in users have the option to disable/enable MathJax (via a checkbox or additional rendering mode)?
- Should Lazy Typesetting be enabled?
- Can the script from DLMF reliably detect MathML disabled browsers (in order to load MathJax on demand)?
Open Tasks:
- security review for MathJax code maybe together with other uses of MathJax https://codesearch.wmcloud.org/search/?q=MathJax&i=nope&files=&excludeFiles=&repos=