quarto-dev / quarto-dev/quarto-cli

formatting problems with multiple tables and echo: fenced

Open
#2,769 4 comments 0 reactions 2 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.