Skip to content

feat(react): support serialization of resolved host nodes - #13

Closed
SoonIter wants to merge 2 commits into
mainfrom
soon-codex/markdown-node-serializer
Closed

SoonIter wants to merge 2 commits into
mainfrom
soon-codex/markdown-node-serializer

Conversation

@SoonIter

@SoonIter SoonIter commented Nov 23, 2026 •

Copy link
Copy Markdown
Owner

Add an optional serializers map to renderToMarkdownString so consumers can serialize named host elements after React resolves their children. This supports preserving Markdown structure until dynamic MDX output is known, as needed by web-infra-dev/rspress#3887.

Existing calls keep their built-in output. Callbacks receive resolved nodes and helpers to delegate to built-in serialization or apply child overrides, retaining parent context; components still execute in their normal Context/Hooks tree. Serializer exceptions reject the render promise. The API is independent of the existing SSR work in #11.

Validation: 39 tests passed (all 33 existing tests plus 6 API regressions), TypeScript check, build, and Publint passed. Tests cover Context/Hooks, child duplication/suppression, delegation and parent context, errors, and concurrent options.

Copilot AI balanced review requested due to automatic review settings November 23, 2026 10:08
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-23T10:08:51.425354Z
We couldn’t complete this review. Comment @codex review to try again.
db404d4 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

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.

2 participants