### Bug description

Quarto version: 1.0.37
OS: Windows 10
RStudio: 2022.07.0 Build 548
---
title: "Listing"
author: "Alex"
format: html
---

Listing caption is missing:

```{r}
#| lst-label: lst-first
#| label: lst-second
#| lst-cap: "This is a caption for code listing"

summary(cars)
```

Unable to resolve crossref @lst-first

Unable to resolve crossref @lst-second


### `quarto check` Output

_No response_

### `quarto tools check` Output

_No response_

### 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?
- [ ] 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-29T16:30:57Z
alex-vinogradov
bug crossref
v1.4
open
lst-label and lst-cap do not produce listing caption and reference
https://github.com/quarto-dev/quarto-cli/issues/1580