pandoc icon indicating copy to clipboard operation
pandoc copied to clipboard

markdown -> LaTeX / PDF, use pygmentex instead of listing

Open evan0greenup opened this issue 2 years ago • 0 comments

When converting markdown files with code blocks or inline code terms into PDF or LaTeX files, the current code highlight is not beautiful or expressive.

For use who install latexextra, it would be good to use pygmentex to make the code block very nice.

https://ctan.org/pkg/pygmentex?lang=en

evan0greenup avatar Aug 10 '22 09:08 evan0greenup

We try not to depend on things in latexextra.

jgm avatar Aug 13 '22 21:08 jgm

Nor would we want to depend on pygments being installed.

Note: the highlighting built into pandoc is configurable. See --highlight-style in the manual. You can even write your own styles.

jgm avatar Aug 13 '22 21:08 jgm