Skip to content

fix: improve DOCX Word compatibility - #95

Merged
rogerdigital merged 1 commit into
mainfrom
fix/docx-word-compatibility
Sep 27, 2026
Merged

rogerdigital merged 1 commit into
mainfrom
fix/docx-word-compatibility

Conversation

@rogerdigital

Copy link
Copy Markdown
Owner

Summary

  • Add a DOCX settings part with its relationship and content type so Word can recognize document settings even when the export has no images or links.
  • Generate Word-compatible bookmarks for document and heading anchors, and map internal links to the matching bookmarks.
  • Register embedded SVG images as image/svg+xml and cover the package structure in regression tests.

Verification

  • npm run check:version
  • node --test scripts/check-version.test.mjs
  • npm run lint:obsidian-warnings
  • npm run build
  • npm test (430 tests passed)
  • Opened a generated DOCX in LibreOffice; its PDF conversion retained an internal link to the heading and rendered the SVG image.

Word for iPad editing still requires device validation.

Refs #94

@rogerdigital
rogerdigital merged commit d18ece3 into main Sep 27, 2026
1 check passed
@rogerdigital
rogerdigital deleted the fix/docx-word-compatibility branch September 27, 2026 16:42
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.

1 participant