aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2010-12-07 21:24:35 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2010-12-07 21:24:35 -0800
commit5e35eb309fddea2ebc683c5cc9a9a1a824a7afd0 (patch)
tree0e98d088577fc5aedbc75511baa4b431bf42bc58 /src/Text/Pandoc
parent33ba35da9fd584a17b6b1011daa76a8232799c18 (diff)
downloadpandoc-5e35eb309fddea2ebc683c5cc9a9a1a824a7afd0.tar.gz
Make --smart work in HTML reader.
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"