diff options
author | John MacFarlane <jgm@berkeley.edu> | 2011-01-22 16:01:42 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2011-01-22 16:01:42 -0800 |
commit | a6d7d88b0fb3e2ca739b173f8fdac9e1f91cb14f (patch) | |
tree | b7b945e9fa168b2a8906cba4931a7ccd521c8c35 /src/Text/Pandoc | |
parent | b9356fcc7e1ff2a8bd57309445539de9508d7b86 (diff) | |
download | pandoc-a6d7d88b0fb3e2ca739b173f8fdac9e1f91cb14f.tar.gz |
RST reader: Big speed improvement (300->260ms).
Moved whitespace parser to top of inline parsers.
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r-- | src/Text/Pandoc/Readers/RST.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Text/Pandoc/Readers/RST.hs b/src/Text/Pandoc/Readers/RST.hs index f0fa0e877..d65aac6e5 100644 --- a/src/Text/Pandoc/Readers/RST.hs +++ b/src/Text/Pandoc/Readers/RST.hs @@ -709,9 +709,9 @@ table = gridTable False <|> simpleTable False <|> -- inline :: GenParser Char ParserState Inline -inline = choice [ link +inline = choice [ whitespace + , link , str - , whitespace , endline , strong , emph |