Display equations require blank line after block

The conditions for a displayed latex block have also been relax to allow
for white space charachters on the bounding blank lines, and on the same
lines as the $$ delimiters.