diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2023-01-24 18:54:32 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2023-01-24 18:54:32 +0100 |
commit | d955483753a5cbbfacfdf880ccd2ca5190c514d3 (patch) | |
tree | 45a12cc90f18cac2dc69439990257cae639224eb | |
parent | Depend on HugoNikanor/letsencrypt. (diff) | |
download | cgit-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.sh | 5 |
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" |