Skip to content

feat(markmap): replace legacy renderer with official Markmap engine#196

Closed
ThisIs-Developer wants to merge 1 commit into
mainfrom
codex/new-official-markmap
Closed

feat(markmap): replace legacy renderer with official Markmap engine#196
ThisIs-Developer wants to merge 1 commit into
mainfrom
codex/new-official-markmap

Conversation

@ThisIs-Developer

Copy link
Copy Markdown
Owner

Summary

  • Replaced the custom Markmap SVG approximation with the official Markmap browser API: Transformer, feature asset loading, and Markmap.create.
  • Added pinned Markmap runtime assets (d3, markmap-lib, markmap-view) to the lazy loader and desktop offline preparation flow.
  • Updated worker-rendered Markdown shells and shared diagram CSS so markmap fences render through a dedicated Markmap surface with explicit SVG dimensions.
  • Fixed nested code block rendering bug: Normalized Markmap code fences in preview-worker.js before splitting the document into blocks in the worker rendering path. This prevents the block splitter from incorrectly truncating the diagram block when encountering nested code block fences.

Validation

  • Verified that the complete Markmap diagram renders correctly in the browser with nested code block nodes as children of language headings.

Replaces the custom static SVG renderer with the official Markmap library and fixes nested code block diagram rendering by normalizing fences before splitting.
@vercel

vercel Bot commented Jun 29, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
markdown-viwer Ready Ready Preview, Comment Jun 29, 2026 3:48pm

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying markdownviewer with  Cloudflare Pages  Cloudflare Pages

Latest commit: f08fe4c
Status: ✅  Deploy successful!
Preview URL: https://f97efef8.markdownviewer.pages.dev
Branch Preview URL: https://codex-new-official-markmap.markdownviewer.pages.dev

View logs

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying markdown-viewer with  Cloudflare Pages  Cloudflare Pages

Latest commit: f08fe4c
Status: ✅  Deploy successful!
Preview URL: https://935a8647.markdown-viewer.pages.dev
Branch Preview URL: https://codex-new-official-markmap.markdown-viewer.pages.dev

View logs

@ThisIs-Developer ThisIs-Developer deleted the codex/new-official-markmap branch June 29, 2026 15:53
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