git.iko.soy/typeable/pandoc
on master help sign in
More tweaks to smart quote parsing: a ' is not a single quote

start if followed by 's' and then a non-alphanumeric. (Yes, this is English-centric, I'm afraid. But it does help, and I can't think of a language in which 's' by itself is a word.) git-svn-id: https://pandoc.googlecode.com/svn/trunk@498 788f1e2b-df1e-0410-8736-df70ead52e1b

commit2c64e7947b9b7128c92fbaf23d3d6e562c3ea3d0 authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> dateThu 18 Jan 2007, 02:47 (20 years ago) parent5a48839
1 file changed+1
src/Text/Pandoc/Readers/Markdown.hs+1
src/Text/Pandoc/Readers/Markdown.hs+1
@@ -778,6 +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)})
781782
782783singleQuoteEnd = try $ do
783784 char '\'' <|> char '\8217'