Table captions not displaying when rendering Quarto to Word

I'm writing a manuscript using Quarto and rendering to Word for collaborators to review. I'm using the gt package to generate some tables and I'm noticing that table captions don't appear to be working (while figure captions work fine). Can someone help me figure out how to get table captions to show up? Here is a reprex:

---
title: "test"
format: docx
---
```{r}
library(gt)
gt(mtcars) |>
  tab_caption("This is a caption")
```

```{r}
#| tbl-cap: This is also a caption
library(gt)
gt(mtcars) 
```

@rich_i is this supposed to work now ?

Or is this still under development for the new approach regarding caption ?

What is the correct syntax now ? Should tbl-cap be provided or tab_caption() is enough ?

This topic was automatically closed 45 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.