aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc
diff options
context:
space:
mode:
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r--src/Text/Pandoc/Readers/HTML.hs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Text/Pandoc/Readers/HTML.hs b/src/Text/Pandoc/Readers/HTML.hs
index fdc727170..f05fdd57b 100644
--- a/src/Text/Pandoc/Readers/HTML.hs
+++ b/src/Text/Pandoc/Readers/HTML.hs
@@ -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"