Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/resources/filters/quarto-finalize/coalesceraw.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ function coalesce_raw()
-- flatten out divs before merging raw blocks
table.insert(filters, {
Div = function(div)
return div.content
-- only flatten out divs that have no classes or attributes
-- (see https://github.com/quarto-dev/quarto-cli/issues/6936)
if #div.classes == 0 and #div.attributes == 0 then
return div.content
end
end
})
end
Expand Down