universemaster / Temml

adding option to not add <mrow> line breaks, so that vertical alignment inside fences is as required

Home Page:https://temml.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Temml is a LaTeX-to-MathML JavaScript conversion utility. It is built to be lightweight.

Library Minified JavaScript + CSS
Temml 144 KB
MathJax 2.7.5 338 KB
KaTeX 280 KB
TeXZilla 168 KB

As a futher advantage, Temml can use local system fonts. The minimum Temml installation serves a font file that is only 12kb.

Temml’s MathML output conforms to both both MathML 3 (Firefox) and MathML Core (Chromium). When the MathML-in-Chromium project is complete, all the major browsers will support MathML and Temml will become the most lightweight way to render math in a browser.

Temml’s coverage of LaTeX functions is as good as MathJax, slightly better than KaTeX 0.13.0 and substantially better than TeXZilla. See a detailed coverage comparison.

Temml's test suite includes many rendered examples that are available for viewing.

Temml's demonstration page is at https://temml.org/

Documentation can be found at:

Acknowledgements

I built Temml by:

  1. Forking KaTeX.

  2. Deleting half the code, removing the HTML parts and keeping the parser, the macro expander, and the MathML parts.

  3. Doing some code refactoring and many MathML bug fixes.

  4. Adding new functionality: upright lower-case Greek letters, \euro, \label{…}, \ref{…}, \prescript, \definecolor, xcolor color names, etc.

I wish to thank Khan Academy and the many volunteer KaTeX contributors. This library would not exist if KaTeX had not existed first.


Temml is released under terms of the MIT license

About

adding option to not add <mrow> line breaks, so that vertical alignment inside fences is as required

https://temml.org/

License:MIT License


Languages

Language:JavaScript 53.3%Language:HTML 45.9%Language:CSS 0.8%