File tree 1 file changed +0
-16
lines changed
src/resources/filters/quarto-finalize
1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -62,22 +62,6 @@ function coalesce_raw()
62
62
end
63
63
end
64
64
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
81
65
end
82
66
})
83
67
return filters
You can’t perform that action at this time.
0 commit comments