This repository was archived by the owner on Nov 24, 2020. It is now read-only.
This repository was archived by the owner on Nov 24, 2020. It is now read-only.
Maths Plugin Improvement Suggestion #5
Open
Description
Right now, I think Mathematics is displayed like this:
(correct me if I'm wrong...)
- Only TeX notation is currently supported. (There are other input formats)
- Only dollar signs are recognised as maths delimiters.
- Maths is stored as a
<script>
tag in the HTML file, (which is good, better than leaving it raw, solving issues such as misunderstand underscore #3, but maybe MathML is better for accessibility and other reasons). - TeX notation is stored within the script element.
- MathJax is required to display the maths.
- Not all EPUB readers support MathJax, and so some EPUB readers, and engines that don't run JS can't display the mathematics. E.g. It requires four backslash for a newline in math environment gitbook#295
Suggestion: Would it be great if it was like this?
- ASCIIMath, TeX syntax, and MathML are all recognised and parsed (authors can choose which one to use through the plugin options).
- Various delimiters for mathematics are recognised and supported (chosen by the author through plugin options, maybe author uses a lot of dollar signs? perhaps.)
- MathML and SVG are generated. Since MathJax is not lightning fast, SVG is shown until all mathematics are typeset completely.
SVG is also used as a backup for software that don't support MathML nor MathJax. SVG can be disabled through the option.
Perhaps something like MathJax-Node could help us with generating MathML and SVG? - Authors can define custom macros for MathJax through the plugin options. This would make our lives a lot easier and make our markdown source look more beautiful (and readable).
- Original notation source is preserved in MathML annotation.
- MathJax is served with the webpage, so that mathematics is rendered consistently. (Authors can also choose the maths font settings and other useful settings as well)
Summary
What do you guys, @SamyPesse and @AaronO, think?
Plugin options that are possibly great to have:
- choose input notation
- choose maths delimiters
- enable/disable SVG being generated
- custom macros and all those kind of good stuff that are in MathJax configurations.
Metadata
Metadata
Assignees
Labels
No labels