I found that using MathJAX, the client side <math>
rendering implementation makes it very pretty with equal line height. I have set the following to LocalSettings.php
:
$wgUseMathJax = true;
$wgDefaultUserOptions['math'] = MW_MATH_MATHJAX;
source
to share