Skip to content

Commit daf8c0e

Browse files
committed
fenced div syntax for list tables
1 parent 8fa3774 commit daf8c0e

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

docs/authoring/tables.qmd

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -661,6 +661,33 @@ Use `header-rows` and `header-cols` to specify how many rows/columns should be t
661661

662662
:::
663663

664+
### Crossreferencing
665+
666+
To reference a list table, use the `tbl-` cross-reference prefix for the table identifier.
667+
668+
As a Quarto-specific syntax extension, list tables can also provide a caption _after_ the bulleted list, like [fenced divs for cross-referenceable floats](/docs/authoring/cross-references-divs.qmd):
669+
670+
```` markdown
671+
672+
::: {#tbl-my-table .list-table header-rows="1"}
673+
674+
* - Name
675+
- Value
676+
677+
* - Item 1
678+
- 100
679+
680+
* - Item 2
681+
- 200
682+
683+
This is a caption.
684+
685+
:::
686+
687+
See @tbl-my-table.
688+
689+
````
690+
664691
### Advanced Features
665692

666693
List tables support the same advanced features as grid tables:

0 commit comments

Comments
 (0)