Skip to content

formatting problems with multiple tables and echo: fenced #2769

Open
@richardjtelford

Description

@richardjtelford

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.

Metadata

Metadata

Assignees

Labels

astissues related to AST processingbugSomething isn't workinglintlinting-related issues

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions