Handle parsing of the <math> source better.