From 7dfc2b975fd4a735073536914f5a49b8d80a1104 Mon Sep 17 00:00:00 2001 From: Patrick Date: Tue, 23 Dec 2025 23:35:13 +0100 Subject: buncha features --- ui-tree.c | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) (limited to 'ui-tree.c') diff --git a/ui-tree.c b/ui-tree.c index 5e78f64..61049e7 100644 --- a/ui-tree.c +++ b/ui-tree.c @@ -23,6 +23,11 @@ static void print_text_buffer(const char *name, char *buf, unsigned long size) unsigned long lineno, idx; const char *numberfmt = "%1$d\n"; + bool is_markdown = (strncmp(".md", &name[strlen(name)-3], 3) == 0); + if (is_markdown) { + html("
|