Skip to content

feat: add beautiful mermaid#1

Open
kooksee wants to merge 8 commits intomasterfrom
feat/mermaid
Open

feat: add beautiful mermaid#1
kooksee wants to merge 8 commits intomasterfrom
feat/mermaid

Conversation

@kooksee
Copy link
Copy Markdown

@kooksee kooksee commented Apr 6, 2026

No description provided.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request integrates the beautiful-mermaid library to provide an alternative rendering path for supported Mermaid diagram types. The MermaidBlock component now attempts to use this new renderer first, falling back to the standard mermaid library if the diagram type is unsupported or if rendering fails. Feedback was provided to add error logging to an empty catch block in the fallback logic to assist with debugging.

if (canUseBeautiful) {
try {
renderedSvg = renderBeautifulMermaid(normalizedCode);
} catch {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The empty catch block swallows potential errors, making debugging difficult if the beautiful-mermaid rendering fails for unexpected reasons. It is better to log the error.

@kooksee kooksee changed the title chore: quick update feat/mermaid at 2026-04-06 22:23:03 feat: add beautiful mermaid Apr 9, 2026
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