bennyboer / thaw

Hierarchical organizable and versionable document tool with export to PDF
MIT License
4 stars 1 forks source link

Investigate using MathJax as an alternative rendering method for displaying math #37

Open bennyboer opened 3 years ago

bennyboer commented 3 years ago

The standard way to display math in browsers is https://www.mathjax.org/ which is very complete and well tested. We may investigate whether we can use it using GraalVM Javascript to produce SVG.

When #7 is finished we should be able to include SVGs into the PDF and thus can use MathJax as an alternative to the native implementation we currently have.

For example we could introduce a new option to the #MATH# thingy that enables the use of MathJax: #MATH, 'MY MATH CODE', renderer=MathJax where allowed values are either native or MathJax.