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/ui-blob.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/ui-blob.h') diff --git a/source/ui-blob.h b/source/ui-blob.h index 16847b2..efbc94e 100644 --- a/source/ui-blob.h +++ b/source/ui-blob.h @@ -2,7 +2,7 @@ #define UI_BLOB_H extern int cgit_ref_path_exists(const char *path, const char *ref, int file_only); -extern int cgit_print_file(char *path, const char *head, int file_only); +extern int cgit_print_file(char *path, const char *head, int file_only, int html_escape); extern void cgit_print_blob(const char *hex, char *path, const char *head, int file_only); #endif /* UI_BLOB_H */ -- cgit v2.8.0