Markdown: adjust detection of nested lists for Markdown's idiosyncracies