diff options
| -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 |
