git.iko.soy/typeable/pandoc
on master help sign in
Use \/ to avoid en-dash ligature instead of -{}-.

This is to fix LuaLaTeX output. The -{}- sequence does not avoid the ligature with LuaLaTeX but \/ does.

commit3f0fe345f9aa69d1faf36e6a6f913013f21b3749 authorVaclav Zeman <vhaisman@gmail.com> dateSat 8 Feb 2014, 13:40 (13 years ago) parentf8b4a9e
1 file changed+1−1
src/Text/Pandoc/Writers/LaTeX.hs+1−1
src/Text/Pandoc/Writers/LaTeX.hs+1−1
@@ -201,7 +201,7 @@ stringToLaTeX ctx (x:xs) = do
201201 '_' | not isUrl -> "\\_" ++ rest
202202 '#' -> "\\#" ++ rest
203203 '-' -> case xs of -- prevent adjacent hyphens from forming ligatures
204− ('-':_) -> "-{}" ++ rest
204+ ('-':_) -> "-\\/" ++ rest
205205 _ -> '-' : rest
206206 '~' | not isUrl -> "\\textasciitilde{}" ++ rest
207207 '^' -> "\\^{}" ++ rest