handle mathjax in preview server