### Bug description

Hello,

Per this [issue](https://github.com/pandoc/lua-filters/issues/265), I am reporting a bug when trying to crossreference a figure:

Using quarto, I am unable to crossref using regular citation syntax, with short-captions.lua pandoc filter. Figures without the short caption filter can be crossreferenced but not with that filter. I am forced to use the latex alternative which is less practical for another reason.

I am not sure if the problem comes from quarto or this filter.

`![**Bold caption** [@Armas.2004]](figure.jpeg){#fig-cap short-caption="**short-cap**"}`

`@fig-cap` returns **?@fig-cap**

Anything that is not `@fig- `breaks as quarto expects a bibliography citation instead.
`@fig:test` returns (fig:test<empty citation>).

`\ref{fig-cap}` works.

[Here is a minimal reproductible example.](https://github.com/pandoc/lua-filters/files/10949365/short-captions-test.zip)

Instead, I have to use \ref{fig-cap} to reference my figure. The issue is that going to visual mode would remove the bold modifications I make, which is why I would have liked to use the quarto syntax.

For example, `(**Figure \ref{fig-cap}**)` is returned as `(**Figure** \ref{fig-cap})` in visual mode which is not what I want.

I am using the latest version of quarto (1.2.335) and RStudio (4.2.2) on Windows 11, 22H2 lastest version.


### 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-03-12T10:56:58Z
Minh-AnhHuynh
enhancement crossref tables
v1.4
open
Unable to use regular pandoc quarto crossref using short-caption pandoc filter
https://github.com/quarto-dev/quarto-cli/issues/4776