From e898f0abef48a79d5bf64a8c17cdf94cf8f1b258 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 31 Jan 2011 20:42:49 -0800 Subject: Improved fix to markdown noteBlock parser. The last patch did not handle cases with > 4 spaces. Also added a more general test case. --- src/Text/Pandoc/Readers/Markdown.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Text/Pandoc') diff --git a/src/Text/Pandoc/Readers/Markdown.hs b/src/Text/Pandoc/Readers/Markdown.hs index 6a9753987..2bfb742bd 100644 --- a/src/Text/Pandoc/Readers/Markdown.hs +++ b/src/Text/Pandoc/Readers/Markdown.hs @@ -264,7 +264,7 @@ noteBlock = try $ do optional blankline optional indentSpaces raw <- sepBy rawLines (try (blankline >> indentSpaces >> - notFollowedBy newline)) + notFollowedBy blankline)) optional blanklines endPos <- getPosition let newnote = (ref, (intercalate "\n" raw) ++ "\n\n") -- cgit v1.2.3