Format MathJax equation numbers (and clean up code indentation)