Safe DOCX posture
w:sdt block-level structured document tag
A block w:sdt surrounds one or more block-level structures and orders its
properties, optional end properties, and content under the CT_SdtBlock model.
safe-docx preserves an unchanged direct w:body/w:sdt as one scaffold-owned
boundary during forced rebuild and reconstructs controlled paragraphs for a
block control directly inside w:tc. Exact subtree/wrapper preservation is a
bounded metamorphic invariant rather than a requirement imposed by ECMA-376.
Schema declarations
Bounded evidence
- source
packages/docx-compare/src/baselines/atomizer/opaquePassthrough.ts - test
packages/docx-compare/src/baselines/atomizer/documentReconstructor-block-sdt.test.ts - test
packages/docx-compare/src/baselines/atomizer/documentReconstructor-inline-sdt.test.ts - test
packages/docx-compare/src/baselines/atomizer/documentReconstructor-table-sdt.test.ts