Skip to content

notion-react/markdown: centralize block spellings with pull-side renderer when second consumer lands #1098

Description

@schickling

Follow-up from #1097 (decision 0001, option Q1-C).

The new renderToNotionMarkdown projector (@overeng/notion-react/markdown) owns a dedicated JSX→Markdown spelling table that deliberately aligns with — but does not share code with — the pull-side wire renderer (NotionMarkdown.treeToMarkdown in @overeng/notion-effect-client). Delegation was rejected because the pull-side renderer lacks a diagnostics channel and modifying it for review-artifact needs risks .nmd wire-format drift.

Trigger to revisit: a second real consumer of the Markdown projection, or a stable compatibility requirement, per the #1097 demand gate.

Then: evaluate extracting shared spelling constants (or a dialect module) consumed by both serializers, with golden tests on both sides preventing drift.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions