| Summary: | Add an option to insert MathJax script element when exporting to XHTML | ||
|---|---|---|---|
| Product: | LibreOffice | Reporter: | Frédéric Wang <fred.wang> |
| Component: | Formula Editor | Assignee: | Not Assigned <libreoffice-bugs> |
| Status: | NEW --- | ||
| Severity: | enhancement | CC: | rb.henschel |
| Priority: | medium | ||
| Version: | 4.2.0.0.alpha0+ Master | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Crash report or crash signature: | Regression By: | ||
| Bug Depends on: | |||
| Bug Blocks: | 108799 | ||
| Attachments: |
Sample odt document
Sample output Patch |
||
|
Description
Frédéric Wang
2013-06-27 23:22:28 UTC
Created attachment 81594 [details] Sample output Here is how the output could look like. Note that the MathML will display correctly in any browsers. Compare with attachment 81592 [details]. Created attachment 81741 [details]
Patch
This modifies the XHTML filter so that the XSLT stylesheets have an option to insert the MathJax script. Set <xsl:param name="mathjax"> to "true()" to test it.
At the moment there is no UI to enable that option and pass it to the XSLT processor.
On https://www.mathjax.org/#gettingstarted I see <script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script> <script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script> Of cause for XHTML a value for the attribute is needed, that is: <script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script> <script id="MathJax-script" async="async" src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script> What is the difference to <script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=MML_HTMLorMML"></script> which is included in the patch? |