I am looking for a purely client side javascript library that renders latex equations as HTML/CSS. I hate that all I see are utilities that request an image from a server.
Example usage:
latex('\frac{a}{b}')
output:
<div style="position: relative; display: inline-block; height: 2em; width: 1em">
<div style="position: absolute; top: 0em">a</div>
<div style="position: absolute; top: 1em; border-top: 1px solid black">b</div>
</div>
I ask because if this does not exist I am considering writing it, perhaps as a jQuery plugin.