fix(super-converter): normalize inline nodes in non-TOC docPartObj content (SD-2357)#2573
Conversation
…ntent The generic docPartObj handler was missing the normalizeDocPartContent() call that the TOC handler already had, causing documents with non-TOC gallery types (page numbers, bibliographies, cover pages) containing top-level inline nodes (bookmarks, comments, permissions) to fail with "Invalid content for node type documentPartObject". Also expanded the inline node type set to include commentRangeStart, commentRangeEnd, permStart, and permEnd. SD-2357
|
Status: PASS The PR looks clean from an OOXML spec perspective.
The normalization logic (wrapping bare cross-structure annotation nodes in a synthetic paragraph) is a ProseMirror schema requirement, not an OOXML round-trip concern, so no spec compliance issue there. |
|
🎉 This PR is included in vscode-ext v1.1.0-next.18 |
|
🎉 This PR is included in superdoc v1.24.0-next.17 The release is available on GitHub release |
|
🎉 This PR is included in superdoc-cli v0.5.0-next.17 The release is available on GitHub release |
|
🎉 This PR is included in superdoc-sdk v1.3.0-next.17 |
|
🎉 This PR is included in esign v2.2.0-next.3 The release is available on GitHub release |
|
🎉 This PR is included in template-builder v1.3.0-next.2 The release is available on GitHub release |
|
🎉 This PR is included in superdoc v1.24.0 The release is available on GitHub release |
|
🎉 This PR is included in superdoc-cli v0.5.0 The release is available on GitHub release |
|
🎉 This PR is included in superdoc-sdk v1.3.0 |
|
🎉 This PR is included in vscode-ext v2.2.0 |
Documents with non-TOC
docPartObjSDTs (page numbers, bibliographies, cover pages) containing top-level inline nodes (bookmarkStart/bookmarkEnd,commentRangeStart/commentRangeEnd,permStart/permEnd) failed to load withInvalid content for node type documentPartObject.normalizeDocPartContent()call ingenericDocPartHandler— the TOC handler already had this, but the generic path was missing itcommentRangeStart,commentRangeEnd,permStart,permEnd(previously onlybookmarkStart/bookmarkEndwere handled)Closes SD-2357