From db64eeb9bc128682e077217cc1d8830cfc10d88f Mon Sep 17 00:00:00 2001 From: ubq323 Date: Tue, 10 Jun 2025 19:58:38 +0100 Subject: beginning to realize some limitations of garkup5... --- init.lua | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'init.lua') diff --git a/init.lua b/init.lua index dbf37bc..f57c63e 100644 --- a/init.lua +++ b/init.lua @@ -54,11 +54,17 @@ local function mode_hr(S) S:emit(html.T.hr"") end +-- bad! bad! bad! +local function mode_insect(S) S:line() S:emit(html.safe"
") end +local function mode_unsect(S) S:line() S:emit(html.safe"
") end + local mode_patterns = { { "^```", mode_code }, { "^*", mode_list }, { "^#", mode_heading }, { "^%-%-%-", mode_hr }, + { "^<<", mode_insect }, + { "^>>", mode_unsect }, } local function match_mode_pattern(S, line) -- cgit v1.2.3