Using callouts in the margin causes some inconsistent indentation behaviour with headers. If I place the callout like so:

````md
---
title: "doc"
format:
  html:
    self-contained: true
    page-layout: full
---

# weird indentation when page-layout: full


::::{.column-margin}
:::{.callout-note}
## SIDE CALLOUT
Some text
:::
::::

# Correct indentation

Some more text
````

I get the following:

<img width="1203" alt="image" src="https://github.com/quarto-dev/quarto-cli/assets/18472598/aa073af1-24f4-48ff-a588-08e5e17bddd4">

If I comment out `page-layout: full` I get this:

<img width="1099" alt="image" src="https://github.com/quarto-dev/quarto-cli/assets/18472598/58bfdf63-72ba-40c9-8c00-e41d73257909">

Similarly if I remove the callout but keep the page-layout as full I get a normal output.

I am using vscode 

```
quarto check

[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.1.1: OK
      Dart Sass version 1.55.0: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
      Version: 1.3.353
      Path: /Applications/quarto/bin

[✓] Checking basic markdown render....OK

[✓] Checking Python 3 installation....OK
      Version: 3.9.16 (Conda)
      Path: /Users/samalbers/mambaforge/bin/python
      Jupyter: 4.11.1
      Kernels: python3

[✓] Checking Jupyter engine render....OK

[✓] Checking R installation...........OK
      Version: 4.2.3
      Path: /Library/Frameworks/R.framework/Versions/4.2-arm64/Resources
      LibPaths:
        - /Users/samalbers/Library/R/arm64/4.2/library
        - /Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/library
      knitr: 1.41
      rmarkdown: 2.18

[✓] Checking Knitr engine render......OK
```

### 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.
- [X] Please provide the output of `quarto check` so we know which version of quarto and its dependencies you're running.
dragonstyle
2023-05-24T17:12:53Z
boshek
bug
v1.4
open
Callout in margins causes inconsistent indentation
https://github.com/quarto-dev/quarto-cli/issues/5663