From 4c142d2a977a2c377ea3bef30fa986010056ba3e Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Tue, 7 Jul 2026 13:04:42 +0530 Subject: Add comment modal + color changes --- cgit/filters/about.sh | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) (limited to 'cgit/filters/about.sh') diff --git a/cgit/filters/about.sh b/cgit/filters/about.sh index 9455ce7..f1c660b 100755 --- a/cgit/filters/about.sh +++ b/cgit/filters/about.sh @@ -3,8 +3,8 @@ set -eu -# TODO: Add toc links for headers in markdown md_to_html() { + render_discussions_modal echo '
' md2html \ --fpermissive-url-autolinks --fpermissive-www-autolinks \ @@ -21,5 +21,38 @@ to_html() { esac } +render_discussions_modal() { + cat <<'HTML' +
+ + + + +
+ +
+
+
+HTML +} + (to_html "$@" | /usr/lib/cgit/filters/ediblemonad/html-transform.py) || \ (echo "
Error rendering markdown
" && cat) -- cgit v1.3.1