From 1ba5e5f144571aa55957ca3c8445a297d598bd92 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sun, 21 Jun 2020 14:30:58 +0200 Subject: (ab)use source filter to parse markdown as html, with line-numbered + highlighted plaintext only as fallback --- cgit/cgitrc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'cgit/cgitrc') diff --git a/cgit/cgitrc b/cgit/cgitrc index be5b9aa..6542d46 100644 --- a/cgit/cgitrc +++ b/cgit/cgitrc @@ -11,7 +11,14 @@ remove-suffix=1 clone-url=git://$HTTP_HOST/$CGIT_REPO_URL user@$HTTP_HOST:$CGIT_REPO_URL https://$HTTP_HOST$SCRIPT_NAME/$CGIT_REPO_URL http://$HTTP_HOST$SCRIPT_NAME/$CGIT_REPO_URL -source-filter=/usr/lib/cgit/filters/syntax-highlighting.sh +# (ab)use source filter to parse markdown as html, +# with line-numbered + highlighted plaintext only as fallback +# TODO: add anchor to line-numbering: +#
  • 2 +# TODO: hide anchor except in :hover mode: +#
  • ยง +enable-tree-linenumbers=0 +source-filter=/etc/local-COMMON/cgit/filters/syntax-highlighting.sh about-filter=/etc/local-COMMON/cgit/filters/about-formatting.sh readme=:README.md -- cgit v1.2.3