Markdown reader: Fixed bug with literal `</div>` in lists.

Closes #1078.