Markdown reader: Fixed bug with unwanted code in lists.

Closes #1154.

When reading a raw list item, we now strip off nonindent
spaces.
Added test for #1154.