Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using page() with first-level heading results in an empty page #17

Open
talal opened this issue Nov 13, 2024 · 0 comments
Open

Using page() with first-level heading results in an empty page #17

talal opened this issue Nov 13, 2024 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed

Comments

@talal
Copy link
Owner

talal commented Nov 13, 2024

If you insert a page manually using the built-in page function and that page has a first-level heading inside of it then that will result in an empty page which appears before the manually inserted page.

This is because page() always inserts a manual page break and since we also use pagebreak(weak: true) before first-level headings therefore this results in two page breaks which consequently results in an unintended empty page.

To reproduce, use the following snippet:

#page[
= First level heading
#lorem(50)
]
@talal talal assigned talal and unassigned talal Nov 13, 2024
@talal talal added bug Something isn't working help wanted Extra attention is needed good first issue Good for newcomers labels Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant