jgm/gitit — pull request #315 by karlicoss (2012-10-04 21:18:19+00:00)
Title: MathJax rendering in edit preview fixed

MathJax formulas didn't render in edit preview mode for two reasons:

1. No mathjax script was included in preview page (fixed in Network/Gitit/Handlers.hs)
2. No rendering update was done after pressing "Preview" button (fixed in data/static/js/preview.js). Not sure if it's the easiest way to detect if we're using mathjax (I have knowledge neither in JS nor in MathJax), however, that works :)