Skip to content

Commit 661db0a

Browse files
committedJan 21, 2025·
[chore] lua - remove commented-out code
1 parent f169dce commit 661db0a

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed
 

‎src/resources/filters/quarto-finalize/coalesceraw.lua

-16
Original file line numberDiff line numberDiff line change
@@ -62,22 +62,6 @@ function coalesce_raw()
6262
end
6363
end
6464
return blocks
65-
-- local list_of_lists = collate(blocks, function(block, prev_block)
66-
-- return block.t == "RawBlock" and block.format:match(".*-merge$") and
67-
-- prev_block.t == "RawBlock" and prev_block.format == block.format
68-
-- end)
69-
-- local result = pandoc.Blocks({})
70-
-- for _, lst in ipairs(list_of_lists) do
71-
-- local first_el = lst[1]
72-
-- if first_el.t == "RawBlock" and first_el.format:match(".*-merge") then
73-
-- local text = table.concat(lst:map(function(block) return block.text end), "%\n")
74-
-- local new_block = pandoc.RawBlock(first_el.format:gsub("-merge$", ""), text)
75-
-- result:insert(new_block)
76-
-- else
77-
-- result:insert(first_el)
78-
-- end
79-
-- end
80-
-- return result
8165
end
8266
})
8367
return filters

0 commit comments

Comments
 (0)
Please sign in to comment.