Fix typesetting maths into SVG with MathJax.