Pagebreak shortcode does not work in typst in multiple columns layout
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- typescript
- Domain
- cli
Research direction
Start by reproducing the supplied .qmd with the Typst format configured for two columns. Read src/command/render/output-typst.ts, the stack-trace entry point, and trace how the pagebreak shortcode reaches Typst. Done means the example renders without the reported pagebreak compilation error.
Written by the indexing model from the issue text.
Description
Pagebreak shortcode does not work in typst when using multiple columns layout.
---
title: "Quarto Playground"
format:
typst:
columns: 2
---
This is a playground for Quarto.
{{< lipsum 1 >}}
{{< pagebreak >}}
{{< lipsum 1 >}}
Leading to
pandoc
to: typst
output-file: index.typ
standalone: true
shift-heading-level-by: -1
default-image-extension: svg
wrap: none
citeproc: false
toc: true
metadata
columns: 2
title: Quarto Playground
[typst]: Compiling index.typ to index.pdf...error: pagebreaks are not allowed inside of containers
┌─ index.typ:305:1
│
305 │ #pagebreak()
│ ^^^^^^^^^^^
ERROR: Error
at Object.complete (file:///Users/mcanouil/Projects/quarto/quarto-cli/src/command/render/output-typst.ts:79:13)
at eventLoopTick (ext:core/01_core.js:175:7)
at async file:///Users/mcanouil/Projects/quarto/quarto-cli/src/command/render/render.ts:300:23
at async withTimingAsync (file:///Users/mcanouil/Projects/quarto/quarto-cli/src/core/timing.ts:50:20)
at async Object.complete (file:///Users/mcanouil/Projects/quarto/quarto-cli/src/command/render/render.ts:276:7)
at async Object.onPostProcess (file:///Users/mcanouil/Projects/quarto/quarto-cli/src/command/render/render-files.ts:720:28)
at async renderFileInternal (file:///Users/mcanouil/Projects/quarto/quarto-cli/src/command/render/render-files.ts:689:3)
at async renderFiles (file:///Users/mcanouil/Projects/quarto/quarto-cli/src/command/render/render-files.ts:325:9)
at async render (file:///Users/mcanouil/Projects/quarto/quarto-cli/src/command/render/render-shared.ts:102:18)
at async renderForPreview (file:///Users/mcanouil/Projects/quarto/quarto-cli/src/command/preview/preview.ts:428:24)
Originally posted by @ironupiwada in https://github.com/quarto-dev/quarto-cli/discussions/11591#discussioncomment-11776123
- Dominant language
- JavaScript
- Stars
- 6k
- Forks
- 458
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 41
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from quarto-dev/quarto-cli
-
binder bug
Difficulty 1/5 Under an hour Newbie friendliness 92/100
quarto-dev/quarto-cli#14907 · 3 comments ·
-
brand bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
quarto-dev/quarto-cli#14891 ·
-
brand bug html revealjs
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
quarto-dev/quarto-cli#14882 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
quarto-dev/quarto-cli#14875 ·
-
Percent scripts: accept raw-string (r""") and '''-delimited markdown cells, as jupytext writes them Openengines-jupyter enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
quarto-dev/quarto-cli#14850 · 2 comments ·
All issues in quarto-dev/quarto-cli
Similar issues
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
babalae/bettergi-scripts-list#3674 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
vadimdemedes/ink#1029 ·
-
code-quality refactoring
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
github/gh-aw-firewall#8816 ·
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
optimization optimization:agents-md-curator
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
githubnext/gh-aw-cao#13143 ·