maths blocks are terminated by $$ not blank line

consumeMaths no longer stops consumtion of lines when it finds a blank
line. It now stops consumption only when the closing delimiter $$ is
found.