git.iko.soy/typeable/pandoc
on master help sign in
More smart quote adjustments:

+ remove support for all-caps contractions (too much potential for conflict with things like 'M. Mitterand') + add support for 'm as a contraction git-svn-id: https://pandoc.googlecode.com/svn/trunk@560 788f1e2b-df1e-0410-8736-df70ead52e1b

commitf1191f029a24f2f3b0cdb067f28a4aac48c4bc54 authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> dateWed 7 Mar 2007, 20:53 (20 years ago) parent42ade05
1 file changed+2−4
src/Text/Pandoc/Readers/Markdown.hs+2−4
src/Text/Pandoc/Readers/Markdown.hs+2−4
@@ -32,7 +32,7 @@ module Text.Pandoc.Readers.Markdown (
3232 ) where
3333
3434import Data.List ( findIndex, sortBy, transpose, isSuffixOf, intersect )
35−import Data.Char ( isAlphaNum, toUpper )
35+import Data.Char ( isAlphaNum )
3636import Text.ParserCombinators.Pandoc
3737import Text.Pandoc.Definition
3838import Text.Pandoc.Readers.LaTeX ( rawLaTeXInline, rawLaTeXEnvironment )
@@ -778,9 +778,7 @@ singleQuoteStart = try $ do
778778 char '\''
779779 notFollowedBy (oneOf ")!],.;:-? \t\n")
780780 notFollowedBy (try (do -- possessive or contraction
781− let endings = ["s","t","ve","ll","re"]
782− oneOfStrings (endings ++
783− map (map toUpper) endings)
781+ oneOfStrings ["s","t","m","ve","ll","re"]
784782 satisfy (not . isAlphaNum)))
785783 return '\''
786784