Include break nodes in DOCX documents#87
Merged
harshankur merged 1 commit intoharshankur:masterfrom Apr 21, 2026
Merged
Conversation
harshankur
requested changes
Apr 19, 2026
Owner
harshankur
left a comment
There was a problem hiding this comment.
Thank you for the PR. I have requested a few changes. Please do them.
Additionally, you did update the docs in the page for officeParser but not the README itself. Please update it too.
Further, please add tests for this as well to check that. Once you do it, run npm test baseline to generate the new baseline json file for docx also. Manually verify its information is exactly how you expect it. Commit that as well.
And please squash your changes.
f4abe27 to
9d600df
Compare
9d600df to
4e19ff6
Compare
harshankur
approved these changes
Apr 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR aims to provide a way to deserialize line and page breaks in DOCX documents (
w:brnodes). This feature is behind a new config flag.Changes
includeBreakNodesthat is set tofalseby default.breaktoOfficeContentNodeTypeand a new metadata typeBreakMetadatacontaining information about the break type (lineWrapping,pageorcolumn) and the break clear behaviour.parseWord.Which internal parser/component does this affect?
Type of Change
Verification Results
Please describe the tests you ran to verify your changes.
npm run buildand no errors occurred in Node or Browser bundles.npm testand there are no failures.Checklist