diff options
| author | saturneric <[email protected]> | 2025-11-07 22:58:38 +0000 |
|---|---|---|
| committer | saturneric <[email protected]> | 2025-11-07 22:58:38 +0000 |
| commit | ccfd38e2ffaf91bc74f3bcd31d503e551591bc8d (patch) | |
| tree | a771157102538946475ddf4864174a00d26e597f /filters/syntax-highlighting.sh | |
| parent | feat(docker): add `py3-markdown` dependency (diff) | |
| download | cgit-ccfd38e2ffaf91bc74f3bcd31d503e551591bc8d.tar.gz cgit-ccfd38e2ffaf91bc74f3bcd31d503e551591bc8d.zip | |
feat(docker): enable `highlight` for syntax filtering
* Add `py3-pygments` and `highlight` to runtime dependencies for improved
syntax highlighting support.
* Switch syntax filtering to use shell script with `highlight` v3 for
better compatibility and output format.
* Update configuration to reference the new filter script, ensuring
consistent code highlighting in generated content.
Diffstat (limited to 'filters/syntax-highlighting.sh')
| -rwxr-xr-x | filters/syntax-highlighting.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/filters/syntax-highlighting.sh b/filters/syntax-highlighting.sh index 840bc34..5033f58 100755 --- a/filters/syntax-highlighting.sh +++ b/filters/syntax-highlighting.sh @@ -115,7 +115,7 @@ EXTENSION="${BASENAME##*.}" # found (for example) on EPEL 6. # # This is for version 2 -exec highlight --force -f -I -X -S "$EXTENSION" 2>/dev/null +#exec highlight --force -f -I -X -S "$EXTENSION" 2>/dev/null # This is for version 3 -#exec highlight --force -f -I -O xhtml -S "$EXTENSION" 2>/dev/null +exec highlight --force -f -I -O xhtml -S "$EXTENSION" 2>/dev/null |
