### Bug description


fig-xxx for an included_url (such as an interactive graph or a leaflet map) is not accepted as a figure by quarto (bookdown seems to work that way [https://bookdown.org/yihui/rmarkdown-cookbook/include-url.html](https://bookdown.org/yihui/rmarkdown-cookbook/include-url.html)). 

More generally it would be nice to allow user to include any content (if aware) as a figure or a table 
(a table can sometime be rendered as an image ?).


here is a reprex:
````qmd

---
title: "fig"
format: html
editor: visual
---

## Quarto

Quarto enables you to weave together content and executable code into a finished document. To learn more about Quarto see <https://quarto.org>.

here is a map [@fig-map], working as expected, but html saved is not a figure [@fig-maphtml]

```{r}
#| label: fig-map
#| fig-cap: a leaflet interactive map
leaflet::leaflet() |> leaflet::addTiles()
```

```{r}
#| label: fig-maphtml
#| fig-cap: a leaflet interactive map
leaflet::leaflet() |> leaflet::addTiles() |> htmlwidgets::saveWidget("map.html")
knitr::include_url("map.html")
```
the end.
````
### Steps to reproduce

_No response_

### Expected behavior

_No response_

### Actual behavior

_No response_

### Your environment

_No response_

### Quarto check output

_No response_
cscheid
2023-05-27T15:53:04Z
xtimbeau
crossref
v1.4
open
label fig-xxx for knitr::include_url
https://github.com/quarto-dev/quarto-cli/issues/5718