diff options
author | John MacFarlane <fiddlosopher@gmail.com> | 2012-01-10 12:45:19 -0800 |
---|---|---|
committer | John MacFarlane <fiddlosopher@gmail.com> | 2012-01-10 12:45:19 -0800 |
commit | 5b49c47414878c6d907435bb24b8923627af43e1 (patch) | |
tree | 9575d385ad3ab92d02cebbd078e309b3477bd315 /src/Text/Pandoc/Readers | |
parent | 0ee49911f65ec70bbfe81da2d2eeba5ae1d81f18 (diff) | |
download | pandoc-5b49c47414878c6d907435bb24b8923627af43e1.tar.gz |
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.
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 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 |