Skip to content

Conversation

@luccas-harbour
Copy link
Contributor

@luccas-harbour luccas-harbour commented Jan 22, 2026

  • The block converters for paragraphs and tables had multiple levels of functions wrapping other functions. This was modified and simplified and the wrapper functions were removed.
  • The paragraphToFlowBlocks and tableNodeToBlock functions used to accept a very large number of parameters. This was changed so an object is passed instead.

@linear
Copy link

linear bot commented Jan 22, 2026

@luccas-harbour luccas-harbour marked this pull request as ready for review January 22, 2026 19:43
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: 15f7386045

ℹ️ 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".

@luccas-harbour luccas-harbour force-pushed the luccas/sd-1587-refactor-pm-adapter-in-layout-engine-part1 branch from 253491b to 426f133 Compare January 22, 2026 20:17
Copy link
Collaborator

@harbournick harbournick left a comment

Choose a reason for hiding this comment

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

LGTM - nice!! So much cleaner

@harbournick harbournick merged commit a5af472 into main Jan 22, 2026
3 of 4 checks passed
@harbournick harbournick deleted the luccas/sd-1587-refactor-pm-adapter-in-layout-engine-part1 branch January 22, 2026 21:48
harbournick pushed a commit that referenced this pull request Jan 22, 2026
…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>
harbournick pushed a commit that referenced this pull request Jan 22, 2026
## [1.8.2-next.1](v1.8.1...v1.8.2-next.1) (2026-01-22)

### Bug Fixes

* simplify paragraph and table converters in pm-adapter (SD-1587) ([#1806](#1806)) ([fa009bb](fa009bb))
harbournick pushed a commit that referenced this pull request Jan 22, 2026
## [1.8.2](v1.8.1...v1.8.2) (2026-01-22)

### Bug Fixes

* simplify paragraph and table converters in pm-adapter (SD-1587) ([#1806](#1806)) ([fa009bb](fa009bb))
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.

3 participants