The newline inside equation is good for Latex but not for VisualEditor
\begin{equation}
\int_{\gamma_s}f(z)\,\rd z \to \int_{\gamma_0}f(z)\,\rd z\mbox{ as
}s\to 0.
\end{equation}is traslated to
<math display="block">\int_{\gamma_s}f(z)\,\mbox{d} z \to \int_{\gamma_0}f(z)\,\mbox{d} z\mbox{ as
}s\to 0.</math>but the newline among the curly brackets breaks VE
To complete this task modify the MathCheck.py to remove \n from inside math environments.
Please pull request your changes.