Textile reader: Rearranged inline parsers for performance.
This is possible because of the rewrite of simpleInline. Also removed a redundant parser for grouped inlines.
This commit is contained in:
parent
442eecc15c
commit
84f2336a7d
1 changed files with 3 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue