diff options
| author | Jonas Smedegaard <dr@jones.dk> | 2025-06-19 21:26:55 +0200 |
|---|---|---|
| committer | Jonas Smedegaard <dr@jones.dk> | 2025-06-19 21:26:55 +0200 |
| commit | 63eb9a7c17bf394d8ef24b475f72882ccf5da868 (patch) | |
| tree | 8982cf3814c8448ac3a7e49937af1194d92f3e22 | |
| parent | 48485154f6d3f25ebb2711ec1ff9a8a472b070f4 (diff) | |
fix bogus duplicated content
| -rw-r--r-- | sem-md/sem-md.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sem-md/sem-md.lua b/sem-md/sem-md.lua index 867d0ee..1423fcf 100644 --- a/sem-md/sem-md.lua +++ b/sem-md/sem-md.lua @@ -439,15 +439,15 @@ local function Statements (block) if t == "[" or t == "{" then -- qualify unenclosed elements + if chars_unenclosed:len() > 0 then + elems_unenclosed:insert(pandoc.Str(chars_unenclosed)) + end elems:extend(elems_unenclosed) elems_unenclosed = pandoc.List() elems_enclosed = pandoc.List() - if chars_unenclosed:len() > 0 then - elems:insert(pandoc.Str(chars_unenclosed)) - end pos = pos + 1 - chars_unenclosed = chars_unenclosed..t + chars_unenclosed = t chars_enclosed = "" if t == "[" then encl = Enclosure.BRACKETED |
