Madoko has great support for rendering maths for the web, by far superior to KaTeX and MathJax.
[1]: http://madoko.org/reference.html