From 84c7e90f927eb381afa5b0131fc89c051c42389c Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Mon, 7 Apr 2025 13:04:10 +0200 Subject: rename variable new_inlines -> stack --- _extensions/ruc-play/semantic-markdown/semantic-markdown.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to '_extensions') 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 -- cgit v1.2.3