added mathjax compatibility