Markdown reader: Fixed bug with unwanted code in lists.
Closes #1154.
When reading a raw list item, we now strip off nonindent
spaces.
commit3e42f08e87c4795b260154e9747df29bc1613ccc
authorJohn MacFarlane <jgm@berkeley.edu>
dateSun 4 May 2014, 08:07 (12 years ago)
parent6b532c2
src/Text/Pandoc/Readers/Markdown.hs+1
@@ -746,6 +746,7 @@ listLine = try $ do
746746 many spaceChar
747747 listStart)
748748 notFollowedBy' $ htmlTag (~== TagClose "div")
749+ nonindentSpaces
749750 chunks <- manyTill
750751 ( many1 (satisfy $ \c -> c /= '\n' && c /= '<')
751752 <|> liftM snd (htmlTag isCommentTag)