From 84f2336a7db04dbc3c36594d1b4aca2e18186617 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 6 May 2014 23:41:56 -0700 Subject: Textile reader: Rearranged inline parsers for performance. This is possible because of the rewrite of simpleInline. Also removed a redundant parser for grouped inlines. --- src/Text/Pandoc/Readers/Textile.hs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/Text/Pandoc') 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 -- cgit v1.2.3