### Bug description

#### Description

When rendered via Quarto with output format as docx, caption (tbl-cap) and crossref (@tbl-ref) not working with flextable.

#### Reproducible example

````
---
title: Flextable in Word
format: docx
---

# Tables

Reference @tbl-flextable

```{r}
#| label: tbl-flextable
#| tbl-cap: "Caption 2"
library(flextable)
flextable(head(mtcars))
```
````

See output docx file: [mwe_book.docx](https://github.com/quarto-dev/quarto-cli/files/9205320/mwe_book.docx)

This issue is also mentioned here on flextable github page: <a href="https://github.com/davidgohel/flextable/issues/385#issuecomment-1196280019">flextable Github page</a>

#### Expected result

Caption and crossref should render correctly in Word doc

#### RStudio information

```bash
$long_version
[1] "2022.02.3+492"

$release_name
[1] "Prairie Trillium"
```

#### OS information
Windows 10 Enterprise

### `quarto check` Output

```bash

[>] Checking Quarto installation......OK
      Version: 0.9.649
      Path: C:\Program Files\Quarto\bin\
      CodePage: 1252

[>] Checking basic markdown render....OK

[>] Checking Python 3 installation....(None)

      Unable to locate an installed version of Python 3.
      Install Python 3 from https://www.python.org/downloads/

[>] Checking R installation...........OK
      Version: 4.2.0
      Path: C:/PROGRA~1/R/R-42~1.0
      LibPaths:
        - C:/Users/username/Documents/R/win-library/4.2
        - C:/Program Files/R/R-4.2.0/library
      rmarkdown: 2.14

[>] Checking Knitr engine render......OK
```

### `quarto tools check` Output

```bash
[>] Inspecting tools

Tool         Status                    Installed     Latest  
chromium     Not installed             ---           869685  
tinytex      External Installation     ---           v2022.07
```

### Checklist

- [X] [formatted your issue](https://yihui.org/issue/#please-format-your-issue-correctly) so it is easier for us to read?
- [X] included 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] documented the quarto version you're running, by pasting the output from running `quarto check` in the "Quarto Check Output" text area?
- [X] documented the version of the quarto tools you're running, by providing the output from running `quarto tools check` in the "Quarto Tools Check Output" text area?
- [X] documented the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
- [X] documented which operating system you're running? If on Linux, please provide the specific distribution as well.
- [X] upgraded to the latest version, including your versions of R, the RStudio IDE, and relevant R packages?
cscheid
2022-07-28T04:30:20Z
leeroyaus
bug crossref
v1.4
open
Captions & crossrefs not rendering in Quarto with Flextable
https://github.com/quarto-dev/quarto-cli/issues/1556