git.iko.soy/typeable/pandoc
on master help sign in
Writers.Shared.unsmartify: undo literal double curly quotes.

Previously we left these.

commitccd4f13a4accf0366072a93b2843706e60a89a5e authorJohn MacFarlane <jgm@berkeley.edu> dateTue 8 Aug 2017, 13:16 (9 years ago) parent714d8a6
1 file changed+3
src/Text/Pandoc/Writers/Shared.hs+3
src/Text/Pandoc/Writers/Shared.hs+3
@@ -214,6 +214,9 @@ unsmartify opts ('\8211':xs)
214214unsmartify opts ('\8212':xs)
215215 | isEnabled Ext_old_dashes opts = "--" ++ unsmartify opts xs
216216 | otherwise = "---" ++ unsmartify opts xs
217+unsmartify opts ('\8220':xs) = '"' : unsmartify opts xs
218+unsmartify opts ('\8221':xs) = '"' : unsmartify opts xs
219+unsmartify opts ('\8216':xs) = '\'' : unsmartify opts xs
217220unsmartify opts (x:xs) = x : unsmartify opts xs
218221unsmartify _ [] = []
219222