aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers/Markdown.hs
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2018-01-20 14:43:33 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2018-01-20 14:44:08 -0800
commitac08a887cf83ce3d08b56447a1dbfc8aec4cd1a3 (patch)
tree9fbc7f778199a9f37b1252cd6f280bc90a96a73a /src/Text/Pandoc/Readers/Markdown.hs
parente69ca9a070c84caeb8056dd28f03c2586718ca33 (diff)
downloadpandoc-ac08a887cf83ce3d08b56447a1dbfc8aec4cd1a3.tar.gz
Markdown reader: Fix parsing bug with nested fenced divs.
Closes #4281. Previously we allowed "nonindent spaces" before the opening and closing `:::`, but this interfered with list parsing, so now we require the fences to be flush with the margin of the containing block.
Diffstat (limited to 'src/Text/Pandoc/Readers/Markdown.hs')
-rw-r--r--src/Text/Pandoc/Readers/Markdown.hs2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/Text/Pandoc/Readers/Markdown.hs b/src/Text/Pandoc/Readers/Markdown.hs
index 92e9098bd..14cf73de4 100644
--- a/src/Text/Pandoc/Readers/Markdown.hs
+++ b/src/Text/Pandoc/Readers/Markdown.hs
@@ -1971,7 +1971,6 @@ divHtml = try $ do
divFenced :: PandocMonad m => MarkdownParser m (F Blocks)
divFenced = try $ do
guardEnabled Ext_fenced_divs
- nonindentSpaces
string ":::"
skipMany (char ':')
skipMany spaceChar
@@ -1986,7 +1985,6 @@ divFenced = try $ do
divFenceEnd :: PandocMonad m => MarkdownParser m ()
divFenceEnd = try $ do
- nonindentSpaces
string ":::"
skipMany (char ':')
blanklines