http://www.mathjax.org/
The diagrams are rendered to SVG (vector graphics, supported by all modern web browsers).