Handle escaping of $ inside mathjax content