### Bug description

I'm getting a `YAMLException: bad indentation of a mapping entry` error when using a `:` inside `paste()` or `glue()` in `fig-`/`tbl-cap`.

I'm using RStudio 4.2.0 with Quarto v. 0.9.624 on macOS 12.3.1.

I'm pretty sure it worked a few weeks ago with an older version of Quarto.

``````
---
format: pdf
---

```{r}
#| echo: false
#| fig-cap: !expr paste("foo: bar")

plot(1)
```
``````

### 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, self-contained, and reproducible example?
- [X] documented the quarto version you're running, by providing the output produced by `quarto check` in a terminal in your issue?
- [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.
- [ ] upgraded to the latest version, including your versions of R, the RStudio IDE, and relevant R packages?
cscheid
2022-07-01T11:09:43Z
arnaudgallou
closed
Captions: colon inside `paste()` leads to `bad indentation of a mapping entry` error
https://github.com/quarto-dev/quarto-cli/issues/1265