Also see Temml, a fork of KaTeX that compiles to MathML instead of styled HTML.

https://temml.org/