Skip to content

feat(docs): add markup primitives render - #54

Open
mikhd wants to merge 3 commits into
feat/2-nav-registryfrom
feat/3-markup-links-and-type
Open

feat(docs): add markup primitives render#54
mikhd wants to merge 3 commits into
feat/2-nav-registryfrom
feat/3-markup-links-and-type

Conversation

@mikhd

@mikhd mikhd commented Jul 15, 2026

Copy link
Copy Markdown

[3] Add the default markdown MarkupRenderer and the renderType type-cell renderer with its docs-local child classification on top of the #53 . No page assembly yet.

To avoid relying on external libs and due to simplicity, markdown code is currently hand-written (except for markdown-table). Please let me know if we would wanted to use any of the markdown libs instead.

Adds:

  • markdownRenderer (render/markdown.ts) - the default MarkupRenderer. Blocks, headings, paragraphs, code spans/blocks, links, bold/italic, ordered/unordered lists, and column-padded tables.
  • renderType (render/renderType.ts) - renders one type-cell from a TypeExpr: entity refs become code-wrapped links (TypeNode), primitives.
  • Child classification - isDocChild decides whether an attribute goes under a page's Data or Children section.

mikhd commented Jul 15, 2026

Copy link
Copy Markdown
Author

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@mikhd mikhd changed the title feat(docs): add markdown renderer, link strategies, type rendering feat(docs): add markup primitives render Jul 15, 2026
@mikhd
mikhd marked this pull request as ready for review July 15, 2026 11:29
@mikhd
mikhd requested a review from lorisleiva July 17, 2026 12:19
@mikhd
mikhd force-pushed the feat/3-markup-links-and-type branch from 606897a to 718ca4e Compare July 23, 2026 10:33
@mikhd
mikhd force-pushed the feat/2-nav-registry branch from edcda6d to 690cb8c Compare July 23, 2026 10:33
@mikhd
mikhd force-pushed the feat/3-markup-links-and-type branch from 718ca4e to ca7790b Compare July 24, 2026 10:17
@mikhd
mikhd force-pushed the feat/2-nav-registry branch from 690cb8c to ec0d87c Compare July 24, 2026 10:17
@mikhd
mikhd force-pushed the feat/2-nav-registry branch from ec0d87c to 8fba9a8 Compare August 6, 2026 08:10
@mikhd
mikhd force-pushed the feat/3-markup-links-and-type branch from ca7790b to 6882c7e Compare August 6, 2026 08:10
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