Improve MathML output formatting