Textile reader: Rearranged inline parsers for performance.
This is possible because of the rewrite of simpleInline.
Also removed a redundant parser for grouped inlines.
commit84f2336a7db04dbc3c36594d1b4aca2e18186617
authorJohn MacFarlane <jgm@berkeley.edu>
dateTue 6 May 2014, 23:41 (12 years ago)
parent442eecc
src/Text/Pandoc/Readers/Textile.hs+3−4
@@ -380,17 +380,16 @@ inline = do
380380
381381-- | Inline parsers tried in order
382382inlineParsers :: [Parser [Char] ParserState Inlines]
383−inlineParsers = [ inlineMarkup
384− , groupedInlineMarkup
385− , str
383+inlineParsers = [ str
386384 , whitespace
387385 , endline
388386 , code
389387 , escapedInline
388+ , inlineMarkup
389+ , groupedInlineMarkup
390390 , rawHtmlInline
391391 , rawLaTeXInline'
392392 , note
393− , try $ (char '[' *> inlineMarkup <* char ']')
394393 , link
395394 , image
396395 , mark