### Bug description

When adding and setting the references and footnotes to be located on the margin within a callout fenced divs, the layout is not longer respected and the divs takes the whole width.

````
---
format: html
reference-location: margin
---

:::{.callout}
Something
:::

:::{.callout}
Something^[Something in the margin]
:::

:::{.callout}
Something[^1]
:::

[^1]: Something in the margin


::::{.callout}
Something

:::{.aside}
Simply something aside for reference
:::

::::
````

<img width="1624" alt="image" src="https://user-images.githubusercontent.com/8896044/197538051-8399e417-3202-456b-9b4e-c713e2345ccb.png">

---

System:
- OS: MacOS Monterey (Apple Silicon)
- IDE: VSCode
- Quarto: v1.2.237

dragonstyle
2022-10-24T13:34:33Z
mcanouil
bug
v1.3
closed
Margin footnotes/references in callout messes the page layout
https://github.com/quarto-dev/quarto-cli/issues/3003