### Bug description

Hello,

Crossrefs are not resolving when figure is created inside a div. The crossref doesn't work either inside the div or outside.

````
---
title: "Crossref bug"
---

:::{.callout-note}
```{r}
#| label: fig-div-plot
#| fig-cap: my plot!
plot(1:10, 1:10)
```
Check out @fig-div-plot
:::

Check out @fig-div-plot
````

(If the figure is created outside of a div, the crossref *does* resolve inside a div).

Example at <https://ellakaye.github.io/quarto-bug/> from repo <https://github.com/EllaKaye/quarto-bug>

This is a bug that has appeared in the pre-release (v1.3.242). It works fine in the current stable release (v.1.2.335).

I'm on macOS Ventura 13.2.1 working in RStudio 2023.03.0-daily+30. 





### 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-03T17:53:35Z
EllaKaye
bug
v1.3
closed
Figure crossref not resolving in callout (new in v1.3)
https://github.com/quarto-dev/quarto-cli/issues/4621