Couldn't you write a TeX renderer that emitted HTML (or RST, or Markdown, or whatever) with SVG for the equations?
I think this project is based on LaTeXML (https://math.nist.gov/~BMiller/LaTeXML/) which is exactly that (except for the SVG part)
I think this project is based on LaTeXML (https://math.nist.gov/~BMiller/LaTeXML/) which is exactly that (except for the SVG part)