git.iko.soy/typeable/pandoc
on master help sign in
Fixed performance improvement to tables.
commitda1e99c03ad80694bb738e10159ecd87b08e9140 authorJohn MacFarlane <fiddlosopher@gmail.com> dateTue 24 Jul 2012, 09:19 (14 years ago) parent2a4b987
1 file changed+1−1
src/Text/Pandoc/Readers/Markdown.hs+1−1
src/Text/Pandoc/Readers/Markdown.hs+1−1
@@ -962,9 +962,9 @@ table :: Parser [Char] ParserState Block
962962table = try $ do
963963 frontCaption <- option [] tableCaption
964964 Table _ aligns widths heads lines' <-
965+ try (scanForPipe >> (pipeTable True <|> pipeTable False)) <|>
965966 multilineTable False <|> simpleTable True <|>
966967 simpleTable False <|> multilineTable True <|>
967− (scanForPipe >> (pipeTable False <|> pipeTable True)) <|>
968968 gridTable False <|> gridTable True <?> "table"
969969 caption <- if null frontCaption
970970 then option [] tableCaption