Make --smart work in HTML reader.
This commit is contained in:
parent
33ba35da9f
commit
5e35eb309f
1 changed files with 3 additions and 2 deletions
|
@ -668,7 +668,8 @@ plain = many1 inline >>= return . Plain . normalizeSpaces
|
||||||
--
|
--
|
||||||
|
|
||||||
inline :: GenParser Char ParserState Inline
|
inline :: GenParser Char ParserState Inline
|
||||||
inline = choice [ charRef
|
inline = choice [ smartPunctuation inline
|
||||||
|
, str
|
||||||
, strong
|
, strong
|
||||||
, emph
|
, emph
|
||||||
, superscript
|
, superscript
|
||||||
|
@ -676,11 +677,11 @@ inline = choice [ charRef
|
||||||
, strikeout
|
, strikeout
|
||||||
, spanStrikeout
|
, spanStrikeout
|
||||||
, code
|
, code
|
||||||
, str
|
|
||||||
, linebreak
|
, linebreak
|
||||||
, whitespace
|
, whitespace
|
||||||
, link
|
, link
|
||||||
, image
|
, image
|
||||||
|
, charRef
|
||||||
, rawHtmlInline
|
, rawHtmlInline
|
||||||
, char '&' >> return (Str "&") -- common HTML error
|
, char '&' >> return (Str "&") -- common HTML error
|
||||||
] <?> "inline"
|
] <?> "inline"
|
||||||
|
|
Loading…
Add table
Reference in a new issue