I want to include some formulas in my HTML document, like this:
<h1>Embedded formula</h1>
<p>And here it goes!</p>
<p><span class="latex">x^n+y^n=z^n</span></p>
MathML seems a bit too complex for this task (and I already have a plenty of complex formulas in latex), so using latex seems to be a better route.
There is a similar question on stackoverflow, yet it is a bit outdated (many things changed in the last two years), and I would like for such html not to require connection to the Internet.
It seems that it is possible to implement jQuery plugin that will in some way interact with texlive.js + pdf.js and perform the task in question, yet I would refrain from writing such a new library if some solution already exists.