aboutsummaryrefslogtreecommitdiff
path: root/src/Text
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2012-07-24 09:19:52 -0700
committerJohn MacFarlane <fiddlosopher@gmail.com>2012-07-24 09:19:52 -0700
commitda1e99c03ad80694bb738e10159ecd87b08e9140 (patch)
tree99d630f5fcc7a19d2e36f523a0707f9a92670961 /src/Text
parent2a4b987cc33995177b339f86c096a87b5abb1795 (diff)
downloadpandoc-da1e99c03ad80694bb738e10159ecd87b08e9140.tar.gz
Fixed performance improvement to tables.
Diffstat (limited to 'src/Text')
-rw-r--r--src/Text/Pandoc/Readers/Markdown.hs2
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