Skip to content

Commit 9b50558

Browse files
committed
remove -merge from objects
1 parent 661db0a commit 9b50558

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,10 @@ function coalesce_raw()
5050
Blocks = function(blocks)
5151
local current_node = nil
5252
for i = 1, #blocks do
53-
if blocks[i].t ~= "RawBlock" or not blocks[i].format:match(".*-merge") then
53+
if blocks[i].t ~= "RawBlock" or not blocks[i].format:match(".*-merge$") then
5454
current_node = nil
5555
else
56+
blocks[i].format = blocks[i].format:gsub("-merge$", "")
5657
if current_node and blocks[i].format == current_node.format then
5758
current_node.text = current_node.text .. blocks[i].text
5859
blocks[i].text = ""

0 commit comments

Comments
 (0)