Small bug fix to last change, and count "'S" as well as "'s" as
possessive when followed by non-alphanumeric.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@499 788f1e2b-df1e-0410-8736-df70ead52e1b
commita7839a18a785e5fe407fdc8906af8d220469f7a4
authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>
dateThu 18 Jan 2007, 02:54 (20 years ago)
parent2c64e79
src/Text/Pandoc/Readers/Markdown.hs+1−1
@@ -778,7 +778,7 @@ singleQuoteStart = try $ do
778778 failIfInQuoteContext InSingleQuote
779779 char '\'' <|> char '\8216'
780780 notFollowedBy (oneOf ")!],.;:-? \t\n")
781− notFollowedBy (do{char 's'; satisfy (not . isAlphaNum)})
781+ notFollowedBy (try (do{oneOf "sS"; satisfy (not . isAlphaNum)}))
782782
783783singleQuoteEnd = try $ do
784784 char '\'' <|> char '\8217'