aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2010-11-27 11:53:30 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2010-11-27 11:53:30 -0800
commit970f63c18a5caf2954e02200150a4bc051a74648 (patch)
tree1b61f217e35c1099d93248e38aea040de0a6a931 /src/Text/Pandoc
parent1ffbb59823975e0df5d0cf04f2384dc1ee05d452 (diff)
downloadpandoc-970f63c18a5caf2954e02200150a4bc051a74648.tar.gz
LaTeX writer: Escape curly quotes.
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r--src/Text/Pandoc/Writers/LaTeX.hs4
1 files changed, 4 insertions, 0 deletions
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.