Markdown reader: Check for blank lines first in blocks.

(And skip them.  This might speed things up in some cases.)
Added test for #882.