git.iko.soy/typeable/pandoc
on master help sign in
LaTeX writer: use `\hspace{0pt}` for 0-width space U+200B.

Closes #5756.

commitc42542428c906947656f3cd821c8d3334e66ffdd authorJohn MacFarlane <jgm@berkeley.edu> dateWed 18 Sep 2019, 13:24 (7 years ago) parentebfa7d6
1 file changed+1
src/Text/Pandoc/Writers/LaTeX.hs+1
src/Text/Pandoc/Writers/LaTeX.hs+1
@@ -375,6 +375,7 @@ stringToLaTeX context zs = do
375375 ']' -> emits "{]}" -- optional arguments
376376 '\'' | ctx == CodeString -> emitcseq "\\textquotesingle"
377377 '\160' -> emits "~"
378+ '\x200B' -> emits "\\hspace{0pt}" -- zero-width space
378379 '\x202F' -> emits "\\,"
379380 '\x2026' -> emitcseq "\\ldots"
380381 '\x2018' | ligatures -> emitquote "`"