aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-05-06 23:41:56 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2014-05-06 23:41:56 -0700
commit84f2336a7db04dbc3c36594d1b4aca2e18186617 (patch)
tree18ee55689214a02651339342c5207c2e0cdcca66
parent442eecc15c2b805872600e111a510e022d1920f7 (diff)
downloadpandoc-84f2336a7db04dbc3c36594d1b4aca2e18186617.tar.gz
Textile reader: Rearranged inline parsers for performance.
This is possible because of the rewrite of simpleInline. Also removed a redundant parser for grouped inlines.
-rw-r--r--src/Text/Pandoc/Readers/Textile.hs7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/Text/Pandoc/Readers/Textile.hs b/src/Text/Pandoc/Readers/Textile.hs
index f83298d4c..2f1fd30b4 100644
--- a/src/Text/Pandoc/Readers/Textile.hs
+++ b/src/Text/Pandoc/Readers/Textile.hs
@@ -380,17 +380,16 @@ inline = do
-- | Inline parsers tried in order
inlineParsers :: [Parser [Char] ParserState Inlines]
-inlineParsers = [ inlineMarkup
- , groupedInlineMarkup
- , str
+inlineParsers = [ str
, whitespace
, endline
, code
, escapedInline
+ , inlineMarkup
+ , groupedInlineMarkup
, rawHtmlInline
, rawLaTeXInline'
, note
- , try $ (char '[' *> inlineMarkup <* char ']')
, link
, image
, mark