From 56d0fbca73150eebf5c7b34facfbb8e93e592ee2 Mon Sep 17 00:00:00 2001 From: tv Date: Thu, 12 Nov 2026 18:06:27 +0000 Subject: cgit-about-filter: style tables --- .../simple/cgit-about-filter/cgit-about-filter.lua | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) (limited to 'pkgs/simple/cgit-about-filter') diff --git a/pkgs/simple/cgit-about-filter/cgit-about-filter.lua b/pkgs/simple/cgit-about-filter/cgit-about-filter.lua index 86468f5..d4f441a 100644 --- a/pkgs/simple/cgit-about-filter/cgit-about-filter.lua +++ b/pkgs/simple/cgit-about-filter/cgit-about-filter.lua @@ -66,6 +66,36 @@ local function md2html(markdown) return output end +local table_style = [[ + +]] + local buffer = "" local should_render = true local current_dir = "" -- Stores the directory prefix of the file being processed @@ -137,6 +167,9 @@ function filter_close() local output = md2html(processed) if output then + if output:find("", 1, true) then + emit(table_style) + end emit(output) else emit("

Error: Could not execute md2html.

") -- cgit v1.3.1