integrate markdown and mathjax. update demo.