Some improvements to mathjax