asciidocasciidoctor-pdf

AsciiDoc syntax highlighting TypeScript JSX (TSX) in PDF


I am using AsciiDoc to write a university React & TypeScript course. For the HTML5 backend, I managed to configure the Prism source code highlighter, which is working great.

What is the recommendation to highlight TypeScript JSX (TSX) source code in PDF? As far as I can tell, rouge and pygments don't support this yet.


Solution

  • As of v3.20.0, rouge properly supports TypeScript & TSX