### Bug description

Hello, 

I try to center all figures in my document with a YAML argument so I tried the generic option `fig-align`

````
---
title: "Untitled"
format: html
fig-align: center
---

```{r}
knitr::opts_chunk$get("fig.align")
```
````
 
But it is not used. However, with the "old" syntax

```
---
title: "Untitled"
format: html
knitr: 
  opts_chunk:
    fig.align: center
---
```

the figures are aligned correctly. Is this the desired behavior? Thanks

RStudio Version 2022.12.0+353 (2022.12.0+353)
Mac OS 13.1

### 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-10T15:30:55Z
abichat
bug crossref
v1.4
open
fig-align in YAML doesn't work
https://github.com/quarto-dev/quarto-cli/issues/4315