diff options
author | Jonas Smedegaard <dr@jones.dk> | 2021-04-14 13:06:54 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2021-04-14 13:06:54 +0200 |
commit | b15329fc696389cf946181e602ead40f2dc21225 (patch) | |
tree | 7e5de51f65885bf90167d0a052c0323fca07863e /cgit/filters | |
parent | 39b02cf337b2ce0e54d7c045e01eb9931162ba03 (diff) |
drop cmark option --safe (noop since 0.29)
Diffstat (limited to 'cgit/filters')
-rwxr-xr-x | cgit/filters/about-formatting.sh | 2 | ||||
-rwxr-xr-x | 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 |