Parse markdown correctly when mathjax is disabled
Merge pull request #3836 from jhamrick/no-mathjax

Parse markdown correctly when mathjax is disabled

Closes #3835