aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJesse Rosenthal <jrosenthal@jhu.edu>2016-09-20 09:44:35 -0400
committerJesse Rosenthal <jrosenthal@jhu.edu>2016-09-20 09:44:35 -0400
commit581fc0130b635123521471236cd7c391f8f260df (patch)
treea54ee6812645b06e09d40dd262b244767733f668 /src
parent02e4b7da89cbf51c6de5f9ae842f76b4bd74669a (diff)
downloadpandoc-581fc0130b635123521471236cd7c391f8f260df.tar.gz
LaTeX writer: change braced backtick to \textasciigrave{}
Backticks in verbatim environments are converted to open-single-quotes. This change makes them appear as backticks. This corresponds to how we treat `'' in verbatim environments (with \textquotesingle{}).
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/Writers/LaTeX.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/LaTeX.hs b/src/Text/Pandoc/Writers/LaTeX.hs
index 600685427..94f7effef 100644
--- a/src/Text/Pandoc/Writers/LaTeX.hs
+++ b/src/Text/Pandoc/Writers/LaTeX.hs
@@ -276,7 +276,7 @@ stringToLaTeX ctx (x:xs) = do
'€' -> "\\euro{}" ++ rest
'{' -> "\\{" ++ rest
'}' -> "\\}" ++ rest
- '`' | ctx == CodeString -> "{`}" ++ rest
+ '`' | ctx == CodeString -> "\\textasciigrave{}" ++ rest
'$' | not isUrl -> "\\$" ++ rest
'%' -> "\\%" ++ rest
'&' -> "\\&" ++ rest