From 58107e019696523e6ca7c3d70d95fe3232529676 Mon Sep 17 00:00:00 2001 From: Tangent Date: Thu, 17 Sep 2026 03:39:13 -0600 Subject: [PATCH] fix formatting output synopses_generator --- synopsis_generator.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/synopsis_generator.lua b/synopsis_generator.lua index 90bc95a..7b65322 100755 --- a/synopsis_generator.lua +++ b/synopsis_generator.lua @@ -98,10 +98,11 @@ local export_ordered_list_of_prompts = function() local tab = text:split("\n") for index, line in ipairs(tab) do - -- ensure no output heading is an H1 - -- TODO make H6 get turned into a bold line - if line:sub(1, 1) == "#" then - tab[index] = "#" .. tab[index] + -- ensure no output heading is an H1; make H6 bold text lines instead + if line:sub(1, 7) == "###### " then + tab[index] = "**" .. line:sub(8) .. "**" + elseif line:sub(1, 1) == "#" then + tab[index] = "#" .. line end end