LaTeX + DOM = plasTeX  

Hi, thanks for checking out plasTeX.

plasTeX is a LaTeX document processing framework written entirely in Python. It currently comes bundled with an XHTML renderer (including multiple themes), as well as a way to simply dump the document to a generic form of XML. Other renderers can be added.

The plasTeX repository has moved to GitHub where it is actively maintained.

The official plasTeX documentation is available on GitHub pages.