aboutsummaryrefslogtreecommitdiff
path: root/src/Text
diff options
context:
space:
mode:
Diffstat (limited to 'src/Text')
-rw-r--r--src/Text/Pandoc/Readers/Markdown.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Text/Pandoc/Readers/Markdown.hs b/src/Text/Pandoc/Readers/Markdown.hs
index 3ecc760ae..35c236041 100644
--- a/src/Text/Pandoc/Readers/Markdown.hs
+++ b/src/Text/Pandoc/Readers/Markdown.hs
@@ -359,7 +359,8 @@ parseBlocks :: MarkdownParser (F Blocks)
parseBlocks = mconcat <$> manyTill block eof
block :: MarkdownParser (F Blocks)
-block = choice [ codeBlockFenced
+block = choice [ mempty <$ blanklines
+ , codeBlockFenced
, guardEnabled Ext_latex_macros *> (macro >>= return . return)
, header
, lhsCodeBlock
@@ -376,7 +377,6 @@ block = choice [ codeBlockFenced
, noteBlock
, referenceKey
, abbrevKey
- , mempty <$ blanklines
, para
, plain
] <?> "block"