LaTeXML is a TeX and LaTeX to XML/HTML/MathML converter. From XML it can generate various flavors of HTML. MathML and ePub, with other formats under development. See the included manual.pdf for documentation. WWW: https://metacpan.org/release/LaTeXML