MathJax extension for LaTeX equations

@gjtorikian In pandoc your example doesn’t causes any problems.

http://johnmacfarlane.net/pandoc/try/?text=I+thought+the+ticket+was+%2420%2C+but+instead+it+was+%2425. This+equation+%241%2B1%3D2%24+is+rendered+as+math.&from=markdown&to=html

I really don’t think $...$ is too prone to mistakes. Markdown users very rarely use the dollar symbol outside of code blocks are math blocks. Even at http://money.stackexchange.com/search?q=%24 this symbol is only used 78 times. And if you check those cases, you’ll see that they will all be solved by jgm’s heuristic.

And in this very rare case, that the dollar symbol really need to be escaped, people can just write \$ right ?