From 66b54db812b01f5b944b0e5694a1473bdbcbaf32 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Mon, 31 Aug 2026 17:10:07 +0200 Subject: Initial commit --- custom/about-filter.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 custom/about-filter.sh (limited to 'custom/about-filter.sh') diff --git a/custom/about-filter.sh b/custom/about-filter.sh new file mode 100755 index 0000000..80456da --- /dev/null +++ b/custom/about-filter.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +case "$1" in +*.md) + lowdown --html-no-skiphtml --html-no-escapehtml + ;; +*.html) + cat - + ;; +*) + # Copied from default cgit txt2html filter, with added id for styling + echo "
"
+	sed "s|&|\\&|g;s|'|\\'|g;s|\"|\\"|g;s|<|\\<|g;s|>|\\>|g"
+	echo "
" + ;; +esac -- cgit v1.3