Skip to content

Conversation

@mattConnHarbour
Copy link
Contributor

  • Calling exportDocx with empty comments array should now export docx without any comments.
  • Previously, was exporting with previous list of comments.
    example:
const newFile = editor.exportDocx({ comments: [], commentsType: 'external'  });

@linear
Copy link

linear bot commented Jan 20, 2026

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 84a978b339

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Copy link
Contributor

@caio-pizzol caio-pizzol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mattConnHarbour looking good just a small comment + tests

const relationships = [];

if (exportType === 'clean') {
// Remove comment files if explicitly cleaning OR if no comments to export (empty array)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a breaking change. Consider adding a migration note or separate option like preserveComments: true for the old behavior.

Also make sure to add covering tests on commentsExporter.test.js for prepareCommentsXmlFilesForExport

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added in flag replaceExistingComments, which is false by default.
Adding in tests next!

luccas-harbour and others added 4 commits January 22, 2026 13:48
…587) (#1806)

* fix: remove dead code

* refactor: table and paragraph converters to avoid redirection

* test: adjust existing tests

* fix: remove unused imports and dead code

* fix: pass theme colors to node handlers

* refactor: simplify type definitions for converters

---------

Co-authored-by: Luccas Correa <luccas@superdoc.dev>
@mattConnHarbour mattConnHarbour force-pushed the SD-1525 branch 3 times, most recently from fbece02 to 7dfbad0 Compare January 27, 2026 02:41
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.

4 participants