Skip to content

Commit

Permalink
RST reader: Big speed improvement (300->260ms).
Browse files Browse the repository at this point in the history
Moved whitespace parser to top of inline parsers.
  • Loading branch information
jgm committed Jan 23, 2011
1 parent b9356fc commit a6d7d88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Text/Pandoc/Readers/RST.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a6d7d88

Please sign in to comment.