aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers
diff options
context:
space:
mode:
Diffstat (limited to 'src/Text/Pandoc/Readers')
-rw-r--r--src/Text/Pandoc/Readers/Markdown.hs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Text/Pandoc/Readers/Markdown.hs b/src/Text/Pandoc/Readers/Markdown.hs
index c32c5ed86..a948d5ad3 100644
--- a/src/Text/Pandoc/Readers/Markdown.hs
+++ b/src/Text/Pandoc/Readers/Markdown.hs
@@ -733,8 +733,9 @@ listLine = try $ do
many (spaceChar)
listStart)
notFollowedBy' $ htmlTag (~== TagClose "div")
- chunks <- manyTill (liftM snd (htmlTag isCommentTag) <|> count 1 anyChar)
- newline
+ chunks <- manyTill (liftM snd (htmlTag isCommentTag)
+ <|> many1 (satisfy (/='\n'))
+ <|> count 1 anyChar) newline
return $ concat chunks
-- parse raw text for one list item, excluding start marker and continuations