aboutsummaryrefslogtreecommitdiffstats
path: root/filters/syntax-highlighting.sh
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2025-11-07 22:58:38 +0000
committersaturneric <[email protected]>2025-11-07 22:58:38 +0000
commitccfd38e2ffaf91bc74f3bcd31d503e551591bc8d (patch)
treea771157102538946475ddf4864174a00d26e597f /filters/syntax-highlighting.sh
parentfeat(docker): add `py3-markdown` dependency (diff)
downloadcgit-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-xfilters/syntax-highlighting.sh4
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