From c42542428c906947656f3cd821c8d3334e66ffdd Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Wed, 18 Sep 2019 13:24:04 -0700 Subject: LaTeX writer: use `\hspace{0pt}` for 0-width space U+200B. Closes #5756. --- src/Text/Pandoc/Writers/LaTeX.hs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/Text/Pandoc') diff --git a/src/Text/Pandoc/Writers/LaTeX.hs b/src/Text/Pandoc/Writers/LaTeX.hs index 2e340b411..2ea26344a 100644 --- a/src/Text/Pandoc/Writers/LaTeX.hs +++ b/src/Text/Pandoc/Writers/LaTeX.hs @@ -375,6 +375,7 @@ stringToLaTeX context zs = do ']' -> emits "{]}" -- optional arguments '\'' | ctx == CodeString -> emitcseq "\\textquotesingle" '\160' -> emits "~" + '\x200B' -> emits "\\hspace{0pt}" -- zero-width space '\x202F' -> emits "\\," '\x2026' -> emitcseq "\\ldots" '\x2018' | ligatures -> emitquote "`" -- cgit v1.2.3