File tree Expand file tree Collapse file tree 2 files changed +26
-1
lines changed
src/resources/filters/customnodes
tests/docs/smoke-all/2025/01/31 Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ _quarto.ast.add_handler({
7676 tbl .attributes = as_plain_table (tbl .attr .attributes )
7777 tbl .attr = nil
7878 end
79- tbl .preamble = pandoc .Div (tbl .preamble )
79+ tbl .preamble = not _quarto . utils . is_empty_node ( tbl . preamble ) and pandoc .Div (tbl .preamble ) or nil
8080 end
8181 -- compute vertical alignment and remove attribute
8282 if tbl .attributes == nil then
Original file line number Diff line number Diff line change 1+ ---
2+ title : No empty preamble in layout panel
3+ format :
4+ html : default
5+ typst :
6+ keep-typ : true
7+ _quarto :
8+ tests :
9+ html :
10+ ensureFileRegexMatches :
11+ - []
12+ - ['<div>\s*</div>\s*<div class="quarto-layout-panel"']
13+ typst :
14+ ensureTypstFileRegexMatches :
15+ - []
16+ - ['#block\[\s*\]']
17+ ---
18+
19+ :::{layout-ncol=2}
20+
21+ Test 1
22+
23+ Test 2
24+
25+ :::
You can’t perform that action at this time.
0 commit comments