amyjko / bookish

A simple framework for publishing online books.
MIT License
69 stars 14 forks source link

Content: Mathematical formulas #26

Open amyjko opened 4 years ago

amyjko commented 4 years ago

MathML isn't fully supported (on Chrome or Edge), but there is partial support on WebKit and Firefox. There are some polyfills:

https://www.w3.org/wiki/Math_Tools

We'd need to add a syntax for including these, but it could be as simple as just segmenting it as a block escape format with embedded a MathML syntax.

https://www.w3.org/wiki/Math_Tools

Another option seems to be MathJAX, which seems pretty well supported:

https://www.mathjax.org

orcmid commented 3 years ago

I've seen MathJAX support, it does seem to go well. It is unfortunate that GitHub doesn't seem to support any.

I know for the knd of mathiness I desire, MathJAX would be great. I think it can be targetted/escaped-into with the usual \$ ... \$ bracketing in-line, with LaTeXy formula expressions. It may create more client-side load and I don't know how that will work inside of responsive pages and small-surface devices.