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 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