Revision history [back]
I created a patch for the markdown2.py module that does a better job of isolating MathJax equations from the Markdown processing. Basically, it just replaces all instances of $...$
and $$...$$
patterns from the text, performs the standard markdown processing, and inserts them back in. It works surprisingly well. You can download the context diff from this link (this is just a text file).
The only downside that I can see is that you need to backslash all regular dollar signs that you use in text---but if you run a math-heavy web site like I do, that's no big deal.
Anyway, the Javascript module needs a similar update so that the functionality matches. I've worked on that already, and once I'm satisfied I'll share it here, too. EDIT: OK, I'm satisfied with that patch; you can grab it from this link.
I created a patch for the markdown2.py module that does a better job of isolating MathJax equations from the Markdown processing. Basically, it just replaces all instances of $...$
and $$...$$
patterns from the text, performs the standard markdown processing, and inserts them back in. It works surprisingly well. You can download the context diff from this link (this is just a text file).
The only downside that I can see is that you need to backslash all regular dollar signs that you use in text---but if you run a math-heavy web site like I do, that's no big deal.
Anyway, the Javascript module needs a similar update so that the functionality matches. I've worked on that already, and once I'm satisfied I'll share it here, too. EDIT: OK, I'm satisfied with that patch; you can grab it from this link.too.