Skip to content

feat: render mermaid diagrams with Pele - #2622

Merged
Philipinho merged 6 commits into
mainfrom
feat/pele-diagrams
Oct 30, 2026
Merged

Philipinho merged 6 commits into
mainfrom
feat/pele-diagrams

Conversation

@Philipinho

Copy link
Copy Markdown
Member
  • Render mermaid diagrams with Pele
  • Update Excalidraw version

- replace mermaid with pele, loading each diagram type on first use
- map pele colors to Mantine tokens for light and dark mode
- keep the last drawing under parse errors while editing
- show zoom controls to readers on diagrams shrunk to fit
- upgrade pele to 1.12.0
- upgrade excalidraw to 0.18.0-4ce8305, whose mermaid converter uses pele
- switch excalidraw exports to exportScene and the onExcalidrawAPI prop
- remove the mermaid, katex and lodash-es overrides
- exempt @excalidraw/* and pele from minimumReleaseAge until they age
- pin excalidraw's modal container to the viewport
- it sits at the top of the document, so the mermaid dialog opened off screen
@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedpele@​1.12.07910010098100
Updated@​excalidraw/​excalidraw@​0.18.0-3a5ef40 ⏵ 0.18.0-4ce83059610091 +1397 +3100

View full report

@Philipinho
Philipinho merged commit e8fe70c into main Oct 30, 2026
6 checks passed
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