We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 661db0a commit 9b50558Copy full SHA for 9b50558
src/resources/filters/quarto-finalize/coalesceraw.lua
@@ -50,9 +50,10 @@ function coalesce_raw()
50
Blocks = function(blocks)
51
local current_node = nil
52
for i = 1, #blocks do
53
- if blocks[i].t ~= "RawBlock" or not blocks[i].format:match(".*-merge") then
+ if blocks[i].t ~= "RawBlock" or not blocks[i].format:match(".*-merge$") then
54
current_node = nil
55
else
56
+ blocks[i].format = blocks[i].format:gsub("-merge$", "")
57
if current_node and blocks[i].format == current_node.format then
58
current_node.text = current_node.text .. blocks[i].text
59
blocks[i].text = ""
0 commit comments