### Bug description

When labeling figures, capitals in the label string cause the entire label to be unrecognized. "WARNING: Unable to resolve crossref @fig-data-weeeWho" Nothing in the documentation for references makes this appear to be expected behavior. This also impacts the numbering and captions. This behavior is appearing in Visual Studio Code 1.75.1 run on a MacBook Pro M1 Pro running Mac OS 13.1.

May be related to [#1186](https://github.com/quarto-dev/quarto-cli/issues/1186). Sorry, not sure how to shrink the sample to <20 lines.

````
---
title: 'Labeling Bug'
format:
    pdf:
        include-in-header:
            text: |
                \addtokomafont{disposition}{\rmfamily}
jupyter: python3
---

```{python}
#| echo: false

# Workspace initialization
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt

df = pd.DataFrame(np.random.randint(0, 100, size = (100, 2)))

```

# Demonstration

Lorem ipsum lanum et al. Lorem ipsum lanum et al. Lorem ipsum lanum et al. Lorem ipsum lanum et al. Lorem ipsum lanum et al. Lorem ipsum lanum et al. Lorem ipsum lanum et al. See @fig-data-weee and @fig-data-weeeWho.


```{python}
#| echo: false
#| label: fig-data-weee
#| fig-cap:
#|   - "Random Data"

plt.scatter(df[0], df[1], color = '#e34234')
```


```{python}
#| echo: false
#| label: fig-data-weeeWho
#| fig-cap:
#|   - "Random Data"

plt.scatter(df[0], df[1], color = '#e34234')
```

````

### 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-02-26T07:15:58Z
davidmvermillion
bug crossref triaged-to
v1.4
open
Capitals in Figure label strings break rendering
https://github.com/quarto-dev/quarto-cli/issues/4542