### Bug description

Running the `quarto render` on a project folder with a .qmd file that includes a long code block inside a callout block, generates a odd-formatted pdf file, as the one in attachment
[test.pdf](https://github.com/quarto-dev/quarto-cli/files/11321575/test.pdf)

Here a sample .md (.qmd) that causes this issue
[test.md](https://github.com/quarto-dev/quarto-cli/files/11321616/test.md)

The YAML of the project is the following
```
project:
  title: "qproject"
  output-dir: output

format:    
  pdf: 
    toc: true
    toc-depth: 2
    number-sections: true
    code-line-numbers: true
    code-block-bg: "#f0f3f5"
    cap-location: top
```

I'm running quarto 1.2.335
```bash
> quarto --version
1.2.335
```

on vscode 1.77.3
```bash
> code --version
1.77.3
704ed70d4fd1c6bd6342c436f1ede30d1cff4710
x64
```

on Ubuntu 22.04 LTS
```bash
> lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 22.04.2 LTS
Release:	22.04
Codename:	jammy
```

`quarto check` returns the following
```bash
> quarto check

[✓] Checking Quarto installation......OK
      Version: 1.2.335
      Path: /opt/quarto/bin

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

[✓] Checking Python 3 installation....OK
      Version: 3.9.16 (Conda)
      Path: /home/edoardo/miniconda3/envs/DABDPA/bin/python
      Jupyter: 5.3.0
      Kernels: python3, bash

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

[✓] Checking R installation...........(None)

      Unable to locate an installed version of R.
      Install R from https://cloud.r-project.org/
```

### 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-04-25T10:51:47Z
Edoch94
bug callouts source-code
v1.4
open
Long code block inside callout not rendered properly
https://github.com/quarto-dev/quarto-cli/issues/5302