diff options
| author | Jonas Smedegaard <dr@jones.dk> | 2025-04-07 13:04:10 +0200 |
|---|---|---|
| committer | Jonas Smedegaard <dr@jones.dk> | 2025-04-07 13:14:45 +0200 |
| commit | 84c7e90f927eb381afa5b0131fc89c051c42389c (patch) | |
| tree | 74b24508cd646b2d26d85e45140304ba61851b3f | |
| parent | b62fa81c645ca75db10d6048f23b37b044cf0284 (diff) | |
rename variable new_inlines -> stack
| -rw-r--r-- | _extensions/ruc-play/semantic-markdown/semantic-markdown.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/_extensions/ruc-play/semantic-markdown/semantic-markdown.lua b/_extensions/ruc-play/semantic-markdown/semantic-markdown.lua index c39595a..8e5fa2b 100644 --- a/_extensions/ruc-play/semantic-markdown/semantic-markdown.lua +++ b/_extensions/ruc-play/semantic-markdown/semantic-markdown.lua @@ -154,7 +154,7 @@ function Statements (block) -- amount of detected statements in this block local statement_count = 0 - local new_inlines = {} + local stack = {} for i, el in ipairs(block.content) do local pos = 0 @@ -180,7 +180,7 @@ function Statements (block) if el.text:sub(c, c) == "{" then braced = true pos = c + 1 - table.insert(new_inlines, pandoc.Str(s)) + table.insert(stack, pandoc.Str(s)) -- leaving non-annotation enclosure else @@ -212,11 +212,11 @@ function Statements (block) -- TODO: call same function with remains of Str end else - table.insert(new_inlines, el) + table.insert(stack, el) end end if statement_count > 0 then - return pandoc.Blocks {new_inlines} + return pandoc.Blocks {stack} end end |
