Skip to content

Long code block inside callout not rendered properly #5302

Open
@edochi

Description

@edochi

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

Here a sample .md (.qmd) that causes this issue
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

> quarto --version
1.2.335

on vscode 1.77.3

> code --version
1.77.3
704ed70d4fd1c6bd6342c436f1ede30d1cff4710
x64

on Ubuntu 22.04 LTS

> 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

> 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

  • 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.
  • Please format your issue so it is easier for us to read the bug report.
  • Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
  • Please document the operating system you're running. If on Linux, please provide the specific distribution.
  • Please provide the output of quarto check so we know which version of quarto and its dependencies you're running.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcalloutsIssues with Callout Blocks.source-code

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions