diff options
Diffstat (limited to 'src/Text/Pandoc/Readers')
-rw-r--r-- | src/Text/Pandoc/Readers/Markdown.hs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Text/Pandoc/Readers/Markdown.hs b/src/Text/Pandoc/Readers/Markdown.hs index 646e5aaa7..43cb68b67 100644 --- a/src/Text/Pandoc/Readers/Markdown.hs +++ b/src/Text/Pandoc/Readers/Markdown.hs @@ -722,8 +722,9 @@ codeBlockFenced = try $ do blankline contents <- intercalate "\n" <$> manyTill (gobbleAtMostSpaces indentLevel >> anyLine) - (blockDelimiter (== c) (Just size)) - blanklines + (try $ do + blockDelimiter (== c) (Just size) + blanklines) return $ return $ case rawattr of Left syn -> B.rawBlock syn contents |