Inlyne-Project/inlyne

[Suggestion] Add math support

Opened this issue · 3 comments

Hello there ;)

I would like to use Inlyne for viewing my documents which contain (a lot) of mathematical notations
and think support for math grammar would be a great addition to inlyne.

Mathjax support possibly?
Here's how Mathjax (https://www.mathjax.org/#gettingstarted) suggests adding math to HTML.

`<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>`

I don't think that would be a viable approach for us unfortunately since it we would need to support executing JavaScript which is a decent chunk of browers' complexity

Perhaps katex-rs or ReX might be viable alternatives?
I would also love to see math support (but I also understand that it's probably a complex feature).