Open Edoch94 opened 1 year ago
This is a result of using tcolorbox
in LaTeX to produce both the outer callout and and the code formatting. We are attempting to make them both breakable
, allowing them to span pages, but this is explicitly forbidden by tcolorbox
(TIL):
You can nest an unbreakable tcolorbox inside another tcolorbox, even inside a breakable one. But you cannot not nest a breakable box inside a breakable box. The /tcb/breakable key for a nested box is ignored automatically, i. e. inner boxes are always unbreakable.
After all, in the unlikely case you really want to have the nested box to be breakable, use /tcb/enforce breakable for the nested box. But, a breakable box inside a breakable box will usually give a mess.
We'll need to address this one way or another (perhaps by dropping tcolorbox for code formatting or finding some other workaround).
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.pdfHere a sample .md (.qmd) that causes this issue test.md
The YAML of the project is the following
I'm running quarto 1.2.335
on vscode 1.77.3
on Ubuntu 22.04 LTS
quarto check
returns the followingChecklist
quarto check
so we know which version of quarto and its dependencies you're running.