jgm / skylighting

A Haskell syntax highlighting library with tokenizers derived from KDE syntax highlighting descriptions
190 stars 61 forks source link

[LaTeX] More escaping needed for `escapeLaTeX`. #91

Closed mpark closed 4 years ago

mpark commented 4 years ago

pandoc 2.9.1.1

Given

~~`A<B<T>>`{.cpp}~~

Generated LaTeX:

$ pandoc -t latex
~~`A<B<T>>`{.cpp}~~
\sout{\mbox{\VERB|\NormalTok{A<B<T>>}|}}

Produces: Screen Shot 2020-01-19 at 12 44 26 PM Expected: Screen Shot 2020-01-19 at 12 45 20 PM

This seems related to #78, where escapeLaTeX needs < to \textless{} and > to \textgreater{}.