Make --smart work in HTML reader.

This commit is contained in:
John MacFarlane 2010-12-07 21:24:35 -08:00
parent 33ba35da9f
commit 5e35eb309f

View file

@ -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"