add mathjax support, when mathjax is true, use $$ or $ instead of <code> and <pre>