Skip to content

Replace beautiful-mermaid with mermaid - #40

Draft
Fripe070 wants to merge 2 commits into
mainfrom
mermaid-replace
Draft

Replace beautiful-mermaid with mermaid#40
Fripe070 wants to merge 2 commits into
mainfrom
mermaid-replace

Conversation

@Fripe070

Copy link
Copy Markdown
Member

beautiful-mermaid has a lot of layout quirks that make it non-ideal for our documentation.

The original reasoning for beautiful-mermaid over the base mermaid package was the lack of SSR support from mermaid, but the lacklustre results are so much worse that the client-side JS feels justified.

There are projects to allow rendering mermaid statically at build time, but these involve playwright/puppeteer meaning an entire chromium instance runs and essentially screen-captures the rendered charts. There's some small progress on using svgdom, but I have not managed to get it to work.

@Fripe070 Fripe070 added code Related to the site codebase itself, rather than its content code/enhancement Improvements upon existing features labels Aug 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code/enhancement Improvements upon existing features code Related to the site codebase itself, rather than its content

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant