Markdown: Fix parser for Unix line endings

I should research this more carefully; there may be a deeper mistake.
But this passes all unit tests.