Saturday, October 21 2023
Created:
Generative AI
website
Created bin/pandoc-style.sh
to output css code highlight
for css classes generated by pandoc, the default style being kate.
source: SO
#!/bin/sh
style=${1:-kate}
tmp=
trap 'rm -f "$tmp"' EXIT
tmp=$(mktemp)
echo '$highlighting-css$' > "$tmp"
echo '`test`{.c}' | pandoc --highlight-style=$style --template=$tmp