From 970f63c18a5caf2954e02200150a4bc051a74648 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 27 Nov 2010 11:53:30 -0800 Subject: LaTeX writer: Escape curly quotes. --- src/Text/Pandoc/Writers/LaTeX.hs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/Text/Pandoc/Writers/LaTeX.hs b/src/Text/Pandoc/Writers/LaTeX.hs index 5fa345760..0f5ae0eb2 100644 --- a/src/Text/Pandoc/Writers/LaTeX.hs +++ b/src/Text/Pandoc/Writers/LaTeX.hs @@ -110,6 +110,10 @@ stringToLaTeX = escapeStringUsing latexEscapes , ('[', "{[}") -- to avoid interpretation as , (']', "{]}") -- optional arguments , ('\160', "~") + , ('\x2018', "`") + , ('\x2019', "'") + , ('\x201C', "``") + , ('\x201D', "''") ] -- | Puts contents into LaTeX command. -- cgit v1.2.3