From 5b49c47414878c6d907435bb24b8923627af43e1 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 10 Jan 2012 12:45:19 -0800 Subject: Markdown reader: fixed bug in table/hrule parsing. Top line of table must not be followed by a blank line. This bug caused slowdown on some files with hrules and tables, and pandoc tried to interpret the hrules as the tops of multiline tables. --- src/Text/Pandoc/Readers/Markdown.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Text/Pandoc/Readers/Markdown.hs b/src/Text/Pandoc/Readers/Markdown.hs index be6e9c700..2e2941b31 100644 --- a/src/Text/Pandoc/Readers/Markdown.hs +++ b/src/Text/Pandoc/Readers/Markdown.hs @@ -850,7 +850,7 @@ multilineTableHeader :: Bool -- ^ Headerless table multilineTableHeader headless = try $ do if headless then return '\n' - else tableSep + else tableSep >>~ notFollowedBy blankline rawContent <- if headless then return $ repeat "" else many1 -- cgit v1.2.3