Markdown reader: Allow spaces around borders in pipe tables.

Closes #772.
Check for tables before line blocks.

Otherwise some pipe tables get treated as line blocks.
Added test for pipe table with spaces around header lines.