Use mathematical formula with zola

Rendering using KaTeX-Fonts actually still happens on the clients, but the translation from Latex-style Markup to MathML (for accessibility) and HTML spans for rendering happens on the server.

Still faster/lighter weight than doing it client-side.

1 Like

Instead of manually running a Bash script after a change, you might want to take a look at the Rust CLI http-cmd that I built for this use case.

It can be used to run a command and embed its output in the built HTML. This means that it can run any command that takes LaTeX and outputs an SVG and embed that output. The repository contains a Zola example using tex2svg.

(Sorry for the “spam” on multiple posts. I don’t get anything by advertising my tool. I just wanted to share it with others that can benefit from it)

1 Like