### Bug description

The following code yields different results for Quarto versions 1.1 and 1.3.154. In 1.1 it renders fine, caption shows and cross-referencing works. In 1.3.154 neither captioning nor cross-referencing works. Moreover, the styling of the tables is very different.

	---
	format: html
	---

	```{r}
	#| include: false
	library(gt)
	```

	```{r}
	#| echo: false
	#| label: tbl-mytable
	#| tbl-cap: "Caption"
	head(mtcars) %>% gt()
	```

	@tbl-mytable

It works when using `knitr::kable()` instead of `gt()` but I'm particularly interested in using `gt()` here. This issue persists on Windows 10 and Debian.

### Checklist

- [X] 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.
- [X] Please [format your issue](https://quarto.org/bug-reports.html#formatting-make-githubs-markdown-work-for-us) so it is easier for us to read the bug report.
- [X] Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
- [X] Please document the operating system you're running. If on Linux, please provide the specific distribution.
cscheid
2023-02-08T06:29:32Z
snhansen
bug tables
closed
Table caption doesn't work with gt-tables on newer Quarto versions
https://github.com/quarto-dev/quarto-cli/issues/4272