Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 433 Bytes

File metadata and controls

21 lines (13 loc) · 433 Bytes

Notes

2025-04-09

Getting syntax highlighting working was a chore.

Enabling pandoc was easy enough but figuring out what proper CSS to use was difficult. Eventually found a SO answer.

Here's the abbridged version:

echo '$highlighting-css$' > tmp.html
echo '`test`{.js}' | pandoc --highlight-styles=pygments --template=tmp.html > pygments_style.css
rm tmp.html