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 be7d443 commit 9698fa8Copy full SHA for 9698fa8
src/resources/filters/layout/layout.lua
@@ -179,8 +179,11 @@ function partitionCells(divEl)
179
heading = nil
180
end
181
182
- -- if this is .cell-output-display then unroll multiple blocks
183
- if cellDiv.attr.classes:find("cell-output-display") and #cellDiv.content > 1 then
+ -- if this is .cell-output-display that isn't a figure or table
+ -- then unroll multiple blocks
184
+ if cellDiv.attr.classes:find("cell-output-display") and
185
+ #cellDiv.content > 1 and
186
+ not hasFigureOrTableRef(cellDiv) then
187
for _,outputBlock in ipairs(cellDiv.content) do
188
if outputBlock.t == "Div" then
189
cells:insert(outputBlock)
0 commit comments