### Bug description

Pandoc offers two ways to create a block image,

```
![My Caption](file.png)
```

and

```
![My Caption][ref]

[ref]: file.png
```

BUT, if you want to cross-reference these only the first works. See this testcase:

~~~markdown
---
title: "Crossref Test"
author: Jane Doe
lang: en
verbose: true
---

# Introduction #

Sed illum minimum, est mægna alienum mentitum ne.  

![This is a medieval conception of an elephant fighting a dragon.](Elephant.jpg){#fig-elephant}  

Sint meis quo et (see @fig-elephant), vis ad fæcete dolorem!  

![This is a medieval conception of an elephant fighting a dragon.][Elephant]{#fig-elephant2}  

Ad pro quod definitiønem (see @fig-elephant2), mel no laudem delectus, te mei prompta maiorum pønderum!  

[Elephant]: Elephant.jpg
~~~
Image used:
![Elephant](https://user-images.githubusercontent.com/153905/187661004-57cad992-0fa5-45f5-96f9-ad69f2c1f275.jpg)

The result is this:

![Screenshot 2022-08-31 at 11 42 15 copy](https://user-images.githubusercontent.com/153905/187661175-b123884d-b921-4740-8c1e-379b42249421.png)

-----

macOS 12.5.1 and Quarto Version: 1.1.165


### 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://yihui.org/issue/#please-format-your-issue-correctly) so it is easier for us to read the bug report.
- [ ] 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.
2022-08-31T10:46:29Z
iandol
bug
closed
Allow cross-referencing to work with reference-link images
https://github.com/quarto-dev/quarto-cli/issues/2227