### Bug description

**current behavior:**

- `#| fig-cap-location: margin` has no effect in code chunks that render multiple plots

**expected/desired behavior:**

- the main caption is placed in the margin
- sub-captions (a)-(z) are placed in the margin, underneath the main caption
- alternatively, these stay in the document by default, but there is/are separate chunk option(s) to control their placement

# repex

**.qmd:**

````
```{r}
#| label: fig-histograms-3
#| fig-cap-location: margin
#| fig-cap: "this works"
#| fig-width: 4
#| fig-height: 3
hist(rnorm(100))
```

```{r}
#| label: fig-histograms-4
#| fig-cap-location: margin
#| fig-cap: "this should be in the margin"
#| fig-subcap: 
#|   - ""
#|   - ""
#| fig-show: hold
#| fig-width: 4
#| fig-height: 3
#| layout-nrow: 1
hist(runif(100))
hist(rnorm(100))
```
````

**output:**

![image](https://user-images.githubusercontent.com/14542264/187890792-de723e97-7b7d-4f67-a36e-6b774cc37832.png)


# software

- Quarto version 1.1.168
- macOS Monterey version 12.2
- RStudio IDE version "Prairie Trillium" Release  
(1db809b8, 2022-05-16) for macOS

### 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://yihui.org/issue/#please-format-your-issue-correctly) 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.
dragonstyle
2022-09-01T10:17:47Z
HelenaLC
bug
v1.2
closed
`#| fig-cap-location:` is ignored by multi-plot code chunks
https://github.com/quarto-dev/quarto-cli/issues/2247