git.iko.soy/typeable/pandoc
on master help sign in
More tweaks to smart quote parsing: a ' is not a single quote
2c64e79fiddlosopher
src/Text/Pandoc/Readers/Markdown.hs+1
@@ -778,6 +778,7 @@ singleQuoteStart = try $ do
778 failIfInQuoteContext InSingleQuote
778 failIfInQuoteContext InSingleQuote
779 char '\'' <|> char '\8216'
779 char '\'' <|> char '\8216'
780 notFollowedBy (oneOf ")!],.;:-? \t\n")
780 notFollowedBy (oneOf ")!],.;:-? \t\n")
781+ notFollowedBy (do{char 's'; satisfy (not . isAlphaNum)})
781
782
782singleQuoteEnd = try $ do
783singleQuoteEnd = try $ do
783 char '\'' <|> char '\8217'
784 char '\'' <|> char '\8217'