git.iko.soy/typeable/pandoc
on master help sign in
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.

commit5b49c47414878c6d907435bb24b8923627af43e1 authorJohn MacFarlane <fiddlosopher@gmail.com> dateTue 10 Jan 2012, 12:45 (15 years ago) parent0ee4991
1 file changed+1−1
src/Text/Pandoc/Readers/Markdown.hs+1−1
src/Text/Pandoc/Readers/Markdown.hs+1−1
@@ -850,7 +850,7 @@ multilineTableHeader :: Bool -- ^ Headerless table
850850multilineTableHeader headless = try $ do
851851 if headless
852852 then return '\n'
853− else tableSep
853+ else tableSep >>~ notFollowedBy blankline
854854 rawContent <- if headless
855855 then return $ repeat ""
856856 else many1