LaTeX writer: enclose backtick in `{}` in verbatim
We don't want ligatures like ` ?` ` (which produces `¿`) inside
`\texttt{}` environments, so we enclose the backtick in braces.
This fixes #3121
commit5b5f55a710f0d1187cf3c859ff5c422bcb6b9619
authorJesse Rosenthal <jrosenthal@jhu.edu>
dateMon 19 Sep 2016, 16:23 (10 years ago)
parentfd4831d
src/Text/Pandoc/Writers/LaTeX.hs+1
@@ -276,6 +276,7 @@ stringToLaTeX ctx (x:xs) = do
276276 '€' -> "\\euro{}" ++ rest
277277 '{' -> "\\{" ++ rest
278278 '}' -> "\\}" ++ rest
279+ '`' | ctx == CodeString -> "{`}" ++ rest
279280 '$' | not isUrl -> "\\$" ++ rest
280281 '%' -> "\\%" ++ rest
281282 '&' -> "\\&" ++ rest