The output of R's `gt` table-creating package will not render to docx but does render to html and pdf (with certain imperfections discussed in #685).

A workaround for now may be to save the output to a file with `gtsave`, and include it as an image.

---------------------------- minimal reproducible example --------------------------------------------------------

# Create data

```{r}
#| label: setup
#| include: false

library(tidyverse)
library(gt)

df <- tibble(rank=1:10, money=seq(100, 1000, 100))

```

# This renders successfully as html, almost successfully as pdf, and only partially as docx

-   as html everything looks correct

-   as pdf, the line break does not occur

-   as docx, the echoed code is shown but the table does not appear to be in the docx file


```{r}

df %>% 
  gt() %>% 
  cols_label(rank=html("Rank"), money=md("Amount<br>$"))

```



2022-04-19T16:09:30Z
donboyd5
closed
output of R's gt table-creating package will not render to docx but does render to html and pdf
https://github.com/quarto-dev/quarto-cli/issues/687