If a plot is programmatically generated, it produces an error: `LaTeX Error: Not in outer par mode` when rendering. Here is a simple example:

````
---
format: 
  pdf:
    execute:
      echo: false
---

This is some text

::: {.column-margin}

#### Subtitle

```{r}
#| label: fig-test
#| fig-cap: Test captions
#| warning: false
library(tidyverse)
data(iris)
iris %>% ggplot(aes(Sepal.Length, Sepal.Width, color = Species)) + geom_point()
```
:::
````
2023-01-18T22:49:59Z
mikheyev
wontfix lint
Future
open
margin figures errors in pdf when generating plots
https://github.com/quarto-dev/quarto-cli/issues/4011