@@ -758,7 +758,7 @@ charOrRef cs =
758758singleQuoteStart :: GenParser Char ParserState ()
759759singleQuoteStart = do
760760 failIfInQuoteContext InSingleQuote
761− try $ do charOrRef "'\8216"
761+ try $ do charOrRef "'\8216\145"
762762 notFollowedBy (oneOf ")!],.;:-? \t\n")
763763 notFollowedBy (try (oneOfStrings ["s","t","m","ve","ll","re"] >>
764764 satisfy (not . isAlphaNum)))
@@ -767,23 +767,23 @@ singleQuoteStart = do
767767
768768singleQuoteEnd :: GenParser Char st ()
769769singleQuoteEnd = try $ do
770− charOrRef "'\8217"
770+ charOrRef "'\8217\146"
771771 notFollowedBy alphaNum
772772
773773doubleQuoteStart :: GenParser Char ParserState ()
774774doubleQuoteStart = do
775775 failIfInQuoteContext InDoubleQuote
776− try $ do charOrRef "\"\8220"
776+ try $ do charOrRef "\"\8220\147"
777777 notFollowedBy (satisfy (\c -> c == ' ' || c == '\t' || c == '\n'))
778778
779779doubleQuoteEnd :: GenParser Char st ()
780780doubleQuoteEnd = do
781− charOrRef "\"\8221"
781+ charOrRef "\"\8221\148"
782782 return ()
783783
784784ellipses :: GenParser Char st Inline
785785ellipses = do
786− try (charOrRef "…") <|> try (string "..." >> return '…')
786+ try (charOrRef "…\133") <|> try (string "..." >> return '…')
787787 return Ellipses
788788
789789dash :: GenParser Char st Inline
@@ -791,13 +791,13 @@ dash = enDash <|> emDash
791791
792792enDash :: GenParser Char st Inline
793793enDash = do
794− try (charOrRef "–") <|>
794+ try (charOrRef "–\150") <|>
795795 try (char '-' >> lookAhead (satisfy isDigit) >> return '–')
796796 return EnDash
797797
798798emDash :: GenParser Char st Inline
799799emDash = do
800− try (charOrRef "—") <|> (try $ string "--" >> optional (char '-') >> return '—')
800+ try (charOrRef "—\151") <|> (try $ string "--" >> optional (char '-') >> return '—')
801801 return EmDash
802802
803803--