From b15329fc696389cf946181e602ead40f2dc21225 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Wed, 14 Apr 2021 13:06:54 +0200 Subject: drop cmark option --safe (noop since 0.29) --- cgit/filters/about-formatting.sh | 2 +- cgit/filters/syntax-highlighting.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cgit/filters/about-formatting.sh b/cgit/filters/about-formatting.sh index 83a7bc0..5d2d77b 100755 --- a/cgit/filters/about-formatting.sh +++ b/cgit/filters/about-formatting.sh @@ -16,7 +16,7 @@ # CGIT_REPO_CLONE_URL ( = repo.clone-url setting ) case "$(printf '%s' "$1" | tr '[:upper:]' '[:lower:]')" in - *.markdown|*.mdown|*.md|*.mkd|*.mdwn) exec cmark --safe; ;; + *.markdown|*.mdown|*.md|*.mkd|*.mdwn) exec cmark; ;; *.htm|*.html) exec cat; ;; *.txt|*) cd /usr/lib/cgit/filters/html-converters; exec ./txt2html; ;; esac diff --git a/cgit/filters/syntax-highlighting.sh b/cgit/filters/syntax-highlighting.sh index 44cd310..98e1f37 100755 --- a/cgit/filters/syntax-highlighting.sh +++ b/cgit/filters/syntax-highlighting.sh @@ -31,6 +31,6 @@ case "$(printf '%s' "$EXTENSION" | tr '[:upper:]' '[:lower:]')" in esac case "$EXTENSION" in - md) exec cmark --safe;; + md) exec cmark;; *) exec highlight --force -f -I -O xhtml -S "$EXTENSION" --ordered-list --line-number-ref=n 2>/dev/null;; esac -- cgit v1.2.3