mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-27 09:55:57 +00:00
Make --smart work in HTML reader.
This commit is contained in:
@@ -668,7 +668,8 @@ plain = many1 inline >>= return . Plain . normalizeSpaces
|
||||
--
|
||||
|
||||
inline :: GenParser Char ParserState Inline
|
||||
inline = choice [ charRef
|
||||
inline = choice [ smartPunctuation inline
|
||||
, str
|
||||
, strong
|
||||
, emph
|
||||
, superscript
|
||||
@@ -676,11 +677,11 @@ inline = choice [ charRef
|
||||
, strikeout
|
||||
, spanStrikeout
|
||||
, code
|
||||
, str
|
||||
, linebreak
|
||||
, whitespace
|
||||
, link
|
||||
, image
|
||||
, charRef
|
||||
, rawHtmlInline
|
||||
, char '&' >> return (Str "&") -- common HTML error
|
||||
] <?> "inline"
|
||||
|
||||
Reference in New Issue
Block a user