From 52f1c6962bb32d621bba94c69ac3f8610caa7f76 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sun, 22 Jun 2025 18:51:59 +0200 Subject: fix append elements/chars also for enclosed stack --- sem-md/sem-md.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sem-md/sem-md.lua b/sem-md/sem-md.lua index 6f81209..badf8a9 100644 --- a/sem-md/sem-md.lua +++ b/sem-md/sem-md.lua @@ -541,7 +541,7 @@ local function Statements (block) iffy.qualify_unenclosed() else - iffy.append_elems_unenclosed(el) + iffy.append_elems_any(el) end -- specific elements represent content enclosure @@ -565,7 +565,7 @@ local function Statements (block) if iffy.state_is(NONE) then local _, nextpos, s = str:find("^([^%[{\\]*)") pos = nextpos and nextpos + 1 or pos + 1 - iffy.append_chars_unenclosed(s) + iffy.append_chars_any(s) -- entering bracketed or braced enclosure local t = str:sub(pos, pos) @@ -668,7 +668,7 @@ local function Statements (block) -- TODO: parse str_remains for another enclosure if str_remains:len() > 0 then - iffy.append_elems_unenclosed(str_remains) + iffy.append_elems_any(str_remains) iffy.set_state(NONE) end end -- cgit v1.2.3