Rendering LaTeX math without JavaScript
Recently, I found out about MathML Core, which allows browsers to render mathematical notation in HTML without the need for a JavaScript library or converting to images. This got me very excited because I can add LaTeX math rendering to my SSG 1 without having to use JavaScript!
So, obviously I spent the day adding this feature to my SSG. Unfortunately, for pages that use MathML, a math font has to be loaded, and they are quite large. I am using Libertinus, which is 396kB! In comparison to my other assets, it's huge! For comparison, the sum of all other assets on this page is less than 10kB.
Anyways, here's a POC:
Rendered
- Prefixed Closeness
- Let be a set of feasible traces. If then
HTML
Let
ϕ
be a set of feasible traces.
If
τ
1
τ
2
∈
ϕ
then
τ
1
∈
ϕ
Markdown
1
Static Site Generator