From 39c8cd2ae5eadec313661227055fe6d07246ca4e Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Wed, 15 Jul 2026 11:12:30 -1000 Subject: Render README markdown in the browser cgit had no markdown support of its own, so a readme was rendered through an external python filter or not at all. Escaping the source and formatting it in cgit.js keeps the work in the browser like the blob highlighter, and the page stays readable as plain text without scripting. --- source/cgit.h | 1 + 1 file changed, 1 insertion(+) (limited to 'source/cgit.h') diff --git a/source/cgit.h b/source/cgit.h index ab7b284..3cd0317 100644 --- a/source/cgit.h +++ b/source/cgit.h @@ -243,6 +243,7 @@ struct cgit_config { int enable_html_serving; int enable_tree_linenumbers; int enable_tree_group_dirs; + int enable_markdown; int enable_git_config; int enable_cache_list; int local_time; -- cgit v2.8.0