quarto-dev / quarto-dev/quarto-cli
formatting problems with multiple tables and echo: fenced
Open
Nobody has claimed this yet.
ast
bug
lint
- Dominant language
- JavaScript
- Stars
- 6k
- Forks
- 458
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 41
Description
Bug description
When I use echo: fenced block option and have multiple tables in the block, the second table loses the sub-caption and the bold formatting of the header row. With echo: true everything is fine.
Here is a minimal example
---
title: results
format: html
---
```{r}
#| echo: fenced
#| label: tbl-fenced
#| tbl-cap: "Two tables"
#| tbl-subcap:
#| - tab1
#| - tab2
gt::gt(head(mtcars))
gt::gt(head(mtcars))
```
quarto --version 1.2.198
Ubuntu 18.04.6 LTS
RStudio 2022.07.1+554 "Spotted Wakerobin" Release (7872775ebddc40635780ca1ed238934c3345c5de, 2022-07-22) for Ubuntu Bionic
Checklist
- Please include a minimal, fully reproducible example in a single .qmd file? Please provide the whole file rather than the snippet you believe is causing the issue.
- Please format your issue so it is easier for us to read the bug report.
- Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
- Please document the operating system you're running. If on Linux, please provide the specific distribution.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.