git.iko.soy/typeable/pandoc
on master help sign in
Make --smart work in HTML reader.
commit5e35eb309fddea2ebc683c5cc9a9a1a824a7afd0 authorJohn MacFarlane <jgm@berkeley.edu> dateTue 7 Dec 2010, 21:24 (16 years ago) parent33ba35d
1 file changed+3−2
src/Text/Pandoc/Readers/HTML.hs+3−2
src/Text/Pandoc/Readers/HTML.hs+3−2
@@ -668,7 +668,8 @@ plain = many1 inline >>= return . Plain . normalizeSpaces
668668--
669669
670670inline :: GenParser Char ParserState Inline
671−inline = choice [ charRef
671+inline = choice [ smartPunctuation inline
672+ , str
672673 , strong
673674 , emph
674675 , superscript
@@ -676,11 +677,11 @@ inline = choice [ charRef
676677 , strikeout
677678 , spanStrikeout
678679 , code
679− , str
680680 , linebreak
681681 , whitespace
682682 , link
683683 , image
684+ , charRef
684685 , rawHtmlInline
685686 , char '&' >> return (Str "&") -- common HTML error
686687 ] <?> "inline"