Skip to content

v1.46.1

Choose a tag to compare

@superdoc-orbit superdoc-orbit released this 05 Aug 01:25
· 2 commits to stable since this release

Fixes

  • Import resilience for empty style properties — Documents with empty property containers in styles.xml (such as <w:rPr/> on Table Grid) now import successfully. Previously, these self-closing tags would cause the importer to crash because xml-js omits the elements key entirely, leading tables and styled content to be silently dropped from the document.
  • Safer style record parsing — The style catalog builder now handles malformed style records without aborting the entire import. Style records with missing or invalid required attributes (empty w:val on outline levels, missing w:val or w:pos on tab stops, missing w:styleId) are skipped rather than crashing. Previously, a single broken style record would cause createDocument to fall back to an empty document, discarding the entire body.