git.iko.soy/typeable/pandoc
on master help sign in
Markdown reader: Improved previous patch to allow unicode apostrophe.
commit4f76fe5a1debfb61cba8b20474d30fc5632f4be4 authorJohn MacFarlane <fiddlosopher@gmail.com> dateTue 27 Dec 2011, 11:01 (15 years ago) parent8f1da35
1 file changed+2−1
src/Text/Pandoc/Readers/Markdown.hs+2−1
src/Text/Pandoc/Readers/Markdown.hs+2−1
@@ -1093,7 +1093,8 @@ str = do
10931093 <|> (try $ char '_' >>~ lookAhead alphaNum)
10941094 <|> if stateStrict st
10951095 then mzero
1096− else (try $ char '\'' >> lookAhead alphaNum >> return '\x2019')
1096+ else (try $ satisfy (\c -> c == '\'' || c == '\x2019') >>
1097+ lookAhead alphaNum >> return '\x2019')
10971098 -- for things like l'aide - would be better to return
10981099 -- an Apostrophe, but we can't in this context
10991100 let result = a:as