Skip to content

Add support for pageBreakBefore property, and section break type element #60

Merged
harvestcore merged 4 commits intodevelopfrom
page-breaks
Nov 19, 2025
Merged

Add support for pageBreakBefore property, and section break type element #60
harvestcore merged 4 commits intodevelopfrom
page-breaks

Conversation

@jogawebb
Copy link

This PR adds support for additional control over how documents can be split up:

  • Adds support for the <w:pageBreakBefore/> child to specify that a paragraph should always start on a new page.
  • Adds support for the <w:type/> element child of <w:sectPr/> section properties to specify how sections should be separated.
  • Adds an example line-page-and-section-breaks.tsx file to demonstrate the existing <Break/> component, and the two new properties in sections and paragraphs.

Copy link

@harvestcore harvestcore left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@harvestcore harvestcore merged commit 457abdf into develop Nov 19, 2025
2 checks passed
@harvestcore harvestcore deleted the page-breaks branch November 19, 2025 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants