diff options
| author | Jonas Smedegaard <dr@jones.dk> | 2025-05-14 13:33:01 +0200 |
|---|---|---|
| committer | Jonas Smedegaard <dr@jones.dk> | 2025-05-14 13:33:01 +0200 |
| commit | e8c5e43e2bb5f1acfcf85ee6f5bdf508a0281d53 (patch) | |
| tree | 88d8d97d73910b21d5bf90365220add6fe367efe /_extensions/ruc-play/semantic-markdown/semantic-markdown.lua | |
| parent | c3a1d4e8bc47a021548615bbe871e79b46d81222 (diff) | |
refactor collecting non-Str element
Diffstat (limited to '_extensions/ruc-play/semantic-markdown/semantic-markdown.lua')
| -rw-r--r-- | _extensions/ruc-play/semantic-markdown/semantic-markdown.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/_extensions/ruc-play/semantic-markdown/semantic-markdown.lua b/_extensions/ruc-play/semantic-markdown/semantic-markdown.lua index 1f22e64..7b7eaf2 100644 --- a/_extensions/ruc-play/semantic-markdown/semantic-markdown.lua +++ b/_extensions/ruc-play/semantic-markdown/semantic-markdown.lua @@ -306,8 +306,6 @@ local function Statements (block) goto continue end - elems_enclosed:insert(el) - if encl == Enclosure.BRACKETED_DONE then -- disqualify bracketing not directly followed by brace @@ -320,10 +318,13 @@ local function Statements (block) end if encl == Enclosure.BRACKETED then + elems_enclosed:insert(el) + goto continue end if encl == Enclosure.NONE then + elems_enclosed:insert(el) -- specific elements represent content enclosure if ElementTypeIsEnclosure[el.t] then |
