Skip to content

Commit c5cd449

Browse files
committed
support fenced div syntax in list tables
1 parent 1f42551 commit c5cd449

File tree

2 files changed

+47
-2
lines changed

2 files changed

+47
-2
lines changed

tests/docs/crossrefs/tables.qmd

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
---
22
title: Table Crossref Test
3+
_quarto:
4+
tests:
5+
html:
6+
ensureHtmlElements:
7+
- []
8+
- []
39
---
410

511
## Simple Crossref Table
@@ -54,4 +60,4 @@ This has a caption. {tbl-colwidths=[20,40,40]}
5460

5561
:::
5662

57-
see @tbl-list.
63+
see @tbl-list.

tests/docs/smoke-all/table/list_table.qmd

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ _quarto:
44
tests:
55
html:
66
ensureHtmlElements:
7-
- ["table"]
7+
- - "table"
8+
- "div#fig-list-table table" # fenced div syntax using a different prefix
9+
- "div#tbl-list-table-2 table" # fenced div syntax inside list-table (ie, captions last)
810
- ["div.list-table"]
911
---
1012

@@ -57,3 +59,40 @@ _quarto:
5759
* `QUARTO_LOG_FORMAT` is the same as using `--log-format` at command line. It is used to set the format for the log. Possible values are `plain` (default) and `json-stream`.
5860
5961
:::
62+
63+
64+
::: {#fig-list-table}
65+
66+
::: {.list-table widths="0.2,0.4,0.4"}
67+
68+
* - Row 1, Col 1
69+
- Row 1, Col 2
70+
- Row 1, Col 3
71+
72+
* - Row 2, Col 1
73+
- Row 2, Col 2
74+
- Row 2, Col 3
75+
76+
:::
77+
78+
A caption.
79+
80+
:::
81+
82+
see @fig-list-table.
83+
84+
::: {#tbl-list-table-2 .list-table}
85+
86+
* - Row 1, Col 1
87+
- Row 1, Col 2
88+
- Row 1, Col 3
89+
90+
* - Row 2, Col 1
91+
- Row 2, Col 2
92+
- Row 2, Col 3
93+
94+
This has a caption. {tbl-colwidths=[20,40,40]}
95+
96+
:::
97+
98+
see @tbl-list-table-2.

0 commit comments

Comments
 (0)