Embedding an image with a caption (and/or a label) creates a figure environment, which errors on latex output when included in the page margin:

```
:::column-margin
![A dog](./www/dog.jpg)
:::
```
`LaTeX Error: Not in outer par mode.`

It works without the caption, as then there is not figure environment being created

```
:::column-margin
![](./www/dog.jpg)
:::
```

Tested with `lua/xe/pdf-latex`

2022-03-25T09:07:01Z
jmbuhr
closed
margin figures error for pdf output
https://github.com/quarto-dev/quarto-cli/issues/462