git.iko.soy/typeable/pandoc
on master help sign in
Small bug fix to last change, and count "'S" as well as "'s" as
a7839a1fiddlosopher
src/Text/Pandoc/Readers/Markdown.hs+1−1
@@ -778,7 +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+ notFollowedBy (try (do{oneOf "sS"; satisfy (not . isAlphaNum)}))
782
782
783singleQuoteEnd = try $ do
783singleQuoteEnd = try $ do
784 char '\'' <|> char '\8217'
784 char '\'' <|> char '\8217'