diff options
author | John MacFarlane <fiddlosopher@gmail.com> | 2012-07-24 09:19:52 -0700 |
---|---|---|
committer | John MacFarlane <fiddlosopher@gmail.com> | 2012-07-24 09:19:52 -0700 |
commit | da1e99c03ad80694bb738e10159ecd87b08e9140 (patch) | |
tree | 99d630f5fcc7a19d2e36f523a0707f9a92670961 /src/Text | |
parent | 2a4b987cc33995177b339f86c096a87b5abb1795 (diff) | |
download | pandoc-da1e99c03ad80694bb738e10159ecd87b08e9140.tar.gz |
Fixed performance improvement to tables.
Diffstat (limited to 'src/Text')
-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 fb8910583..e9ed32f5f 100644 --- a/src/Text/Pandoc/Readers/Markdown.hs +++ b/src/Text/Pandoc/Readers/Markdown.hs @@ -962,9 +962,9 @@ table :: Parser [Char] ParserState Block table = try $ do frontCaption <- option [] tableCaption Table _ aligns widths heads lines' <- + try (scanForPipe >> (pipeTable True <|> pipeTable False)) <|> multilineTable False <|> simpleTable True <|> simpleTable False <|> multilineTable True <|> - (scanForPipe >> (pipeTable False <|> pipeTable True)) <|> gridTable False <|> gridTable True <?> "table" caption <- if null frontCaption then option [] tableCaption |