aboutsummaryrefslogtreecommitdiff
path: root/src/Text
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-08-18 21:46:55 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2017-08-18 21:46:55 -0700
commit5ab1162def4e6379c84e3363d917252155d9239a (patch)
treec2da5983f22a268135c9506264234159760b4909 /src/Text
parentfbb79c1bcdefb72fbe91dc95ca2e10002c3d5c45 (diff)
downloadpandoc-5ab1162def4e6379c84e3363d917252155d9239a.tar.gz
Markdown reader: fixed parsing of fenced code after list...
...when there is no intervening blank line. Closes #3733.
Diffstat (limited to 'src/Text')
-rw-r--r--src/Text/Pandoc/Readers/Markdown.hs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/Markdown.hs b/src/Text/Pandoc/Readers/Markdown.hs
index cc9e9b71f..26263d674 100644
--- a/src/Text/Pandoc/Readers/Markdown.hs
+++ b/src/Text/Pandoc/Readers/Markdown.hs
@@ -868,7 +868,10 @@ rawListItem :: PandocMonad m
rawListItem start = try $ do
start
first <- listLineCommon
- rest <- many (notFollowedBy listStart >> notFollowedBy blankline >> listLine)
+ rest <- many (do notFollowedBy listStart
+ notFollowedBy (() <$ codeBlockFenced)
+ notFollowedBy blankline
+ listLine)
blanks <- many blankline
return $ unlines (first:rest) ++ blanks