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)
```