Fix MathJax markup (and retouch markdown a little bit).