diff options
author | John MacFarlane <jgm@berkeley.edu> | 2015-12-18 23:59:20 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2015-12-19 00:00:04 -0800 |
commit | e20f433f383b7087da7527103b81e7432d7e8356 (patch) | |
tree | f25ae68d3d30aea4f46b08205ff0759ded53b293 /src/Text/Pandoc/Readers | |
parent | ad3ef5503183c0cd23d26e0fd48be5b7c219d0d5 (diff) | |
download | pandoc-e20f433f383b7087da7527103b81e7432d7e8356.tar.gz |
Markdown reader: fixed parsing bug with macros.
Previously macro definitions in indented code blocks
were being parsed as macro definitions, not code.
Diffstat (limited to 'src/Text/Pandoc/Readers')
-rw-r--r-- | src/Text/Pandoc/Readers/Markdown.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/Markdown.hs b/src/Text/Pandoc/Readers/Markdown.hs index 999ab11de..7b1341af4 100644 --- a/src/Text/Pandoc/Readers/Markdown.hs +++ b/src/Text/Pandoc/Readers/Markdown.hs @@ -484,7 +484,6 @@ block = do res <- choice [ mempty <$ blanklines , codeBlockFenced , yamlMetaBlock - , guardEnabled Ext_latex_macros *> (macro >>= return . return) -- note: bulletList needs to be before header because of -- the possibility of empty list items: - , bulletList @@ -494,6 +493,7 @@ block = do , htmlBlock , table , codeBlockIndented + , guardEnabled Ext_latex_macros *> (macro >>= return . return) , rawTeXBlock , lineBlock , blockQuote |