Skip to content

Parse #pagebreak() in Typst #11101

@RayBB

Description

@RayBB

Explain the problem.

pagebreak.typ:

First Page
#pagebreak()
Second Page

Running: pandoc pagebreak.typ -f typst -t pdf -s -o pagebreak.pdf

The output is missing the page break in PDF. docx also doesn't show it but pandoc to docx isn't supporting pagebreaks by default.

I would expect the content after the #pagebreak() to start on a new page.

Related typst docs: https://typst.app/docs/reference/layout/pagebreak/

Note: Typst supports two parameters:

pagebreak(
weak: bool, to: none | str,
) -> content 

However, for a first version it would probably be fine to ignore those options and give a warning if they're seen.

Pandoc version? MacOS and commit: 22ff5a8909dc8ce4f9d8a7dbdb97dcd657f9ebb0

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions