Enable multi-line display math.

To the display math regex, this commit adds
 * 's' flag, which allows '.' to match newlines,
 * 'U' flag, which makes expression ungreedy, so that a bunch of display math blocks are not treated as one.