If I use any capital letters in the chunk label, it breaks all cross-references to that chunk. 

In the example below, both of the references to fig-TESTING (figure 1) break, and in the final output they are both lowercase `?fig-testing`. 

Both of the references to the second figure however succeed, with both the lowercase and the uppercase cross-references matching with the lowercase chunk label.

````md
# Testing References

Uppercase reference: @fig-TESTING

Lowercase reference: @fig-testing

```{r}
#| label: fig-TESTING
#| fig-cap: "This is figure 1."
plot(rnorm(10))
```


Uppercase reference: @fig-TESTING2

Lowercase reference: @fig-testing2

```{r}
#| label: fig-testing2
#| fig-cap: "This is figure 2."
plot(rnorm(10))
```
````

This seems to be the case with both `.html` and `.pdf` outputs that I have tested.

The output of document in `.html`: 
![image](https://user-images.githubusercontent.com/36021261/162378489-a7787805-fa26-4d05-bdbe-17ef84a761e3.png)


2022-04-08T06:37:42Z
BradyAJohnston
closed
Capitalisation in chunk label breaks cross-references.
https://github.com/quarto-dev/quarto-cli/issues/587