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
21 changes: 20 additions & 1 deletion docs/authoring/tables.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,10 @@ kable(head(cars))

If your code cell produces multiple tables, you can also specify subcaptions and layout using cell options:

```{{r}}
::: {.panel-tabset}
## R

``` {.r}
#| label: tbl-example
#| tbl-cap: "Example"
#| tbl-subcap:
Expand All @@ -293,6 +296,22 @@ kable(head(cars))
kable(head(pressure))
```

## Python

``` {.python}
#| label: tbl-example
#| tbl-cap: "Example"
#| tbl-subcap:
#| - "Cars"
#| - "Pressure"
#| layout-ncol: 2
#| echo: fenced

Markdown(cars + pressure)
```

:::

## Grid Tables

Grid tables are a more advanced type of markdown tables that allow arbitrary block elements (multiple paragraphs, code blocks, lists, etc.). For example:
Expand Down