logoalt Hacker News

MillironXyesterday at 12:21 PM1 replyview on HN

Hugo includes native KaTeX: https://gohugo.io/functions/transform/tomath/

The docs recommend setting up KaTeX CSS (which requires either a CDN link or Node), but by changing output to 'mathml,' you can have the browser render equations with zero dependencies.


Replies

sureglymopyesterday at 6:54 PM

That's news to me! The last time I used Hugo it didn't support that yet and I had to serve the js bundle to run in the browser.