Skip to content

refactor(blog): render Mermaid diagrams with Pele - #191

Merged
f0rr0 merged 1 commit into
nextfrom
f0rr0/adopt-pele
Oct 19, 2026
Merged

f0rr0 merged 1 commit into
nextfrom
f0rr0/adopt-pele

Conversation

@f0rr0

@f0rr0 f0rr0 commented Oct 18, 2026

Copy link
Copy Markdown
Owner

Replace Mermaid.js and the ELK layout plugin with Pele for blog diagrams. Existing Mermaid fences keep working, while diagrams adapt to the article width and follow light/dark colors through CSS without re-rendering.

Pele owns rendering, resize handling, fonts, and zoom/pan controls. Keep the existing fullscreen action, accessible titles/descriptions, and readable-source error fallback. Remove the old render queue, JavaScript theme configuration, custom zoom state, and unused dependencies; update the kitchen-sink examples and README.

Validation

  • bun run test: 329 passed; two database integration tests skipped because CACHE_TEST_DATABASE_URL is unset.
  • 20 diagram tests cover all 17 current Mermaid fences at mobile and desktop widths, accessibility metadata, the MDX transform, and malformed source.
  • bun run lint (including both unused-code checks), bun run typecheck, and bun run format:typ:check pass.
  • bun run build passes. GitHub preview fetches returned 403 and used the existing fallback behavior.
  • Browser checks at 390px and 1440px: no horizontal page overflow; native zoom/reset, fullscreen, CSS theme switching, and source fallback work without console errors.

Diagrams use Pele’s layout and visual style. No Mermaid.js or ELK fallback remains.

@vercel

vercel Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
f0rr0-github-io Ready Ready Preview Oct 18, 2026 6:56pm UTC

@f0rr0
f0rr0 merged commit 248a779 into next Oct 19, 2026
4 checks passed
@f0rr0
f0rr0 deleted the f0rr0/adopt-pele branch October 19, 2026 03:40

This branch was successfully deployed

1 active deployment
Preview — 7c578ace Deployed Oct 18, 2026 by vercel[bot]
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