http://casual-effects.com/markdeep/

For writing text that will look good in any web browser. It supports diagrams, common styling conventions, and equations as extensions of Markdown syntax.