[markdown] Fix handling of forced blank lines (after headers)

Closes #2813.