summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2023-01-24 18:54:32 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2023-01-24 18:54:32 +0100
commitd955483753a5cbbfacfdf880ccd2ca5190c514d3 (patch)
tree45a12cc90f18cac2dc69439990257cae639224eb
parentDepend on HugoNikanor/letsencrypt. (diff)
downloadcgit-d955483753a5cbbfacfdf880ccd2ca5190c514d3.tar.gz
cgit-d955483753a5cbbfacfdf880ccd2ca5190c514d3.tar.xz
Fix built-in highlight filter.
cgit already handles the <pre>-tag, and gives input on stdin (and the file isn't directly available).
-rw-r--r--files/filters/highlight.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/files/filters/highlight.sh b/files/filters/highlight.sh
index 75a8ccd..56fc030 100644
--- a/files/filters/highlight.sh
+++ b/files/filters/highlight.sh
@@ -4,6 +4,5 @@ filename="$1"
extension="${filename##*.}"
exec highlight --inline-css --force --fragment \
- --enclose-pre --out-format=xhtml \
- --syntax="$extension" \
- "$filename"
+ --out-format=xhtml \
+ --syntax="$extension"