git.iko.soy/typeable/pandoc
on master help sign in
Merge pull request #1145 from wilx/en-dash-ligature-avoidance
c5dc801John MacFarlane
src/Text/Pandoc/Writers/LaTeX.hs+1−1
@@ -206,7 +206,7 @@ stringToLaTeX ctx (x:xs) = do
206 '_' | not isUrl -> "\\_" ++ rest
206 '_' | not isUrl -> "\\_" ++ rest
207 '#' -> "\\#" ++ rest
207 '#' -> "\\#" ++ rest
208 '-' -> case xs of -- prevent adjacent hyphens from forming ligatures
208 '-' -> case xs of -- prevent adjacent hyphens from forming ligatures
209− ('-':_) -> "-{}" ++ rest
209+ ('-':_) -> "-\\/" ++ rest
210 _ -> '-' : rest
210 _ -> '-' : rest
211 '~' | not isUrl -> "\\textasciitilde{}" ++ rest
211 '~' | not isUrl -> "\\textasciitilde{}" ++ rest
212 '^' -> "\\^{}" ++ rest
212 '^' -> "\\^{}" ++ rest