Skip to content

Support mermaid charts rendering#4760

Open
edu-diaz wants to merge 1 commit intoartifacthub:masterfrom
edu-diaz:support-mermaid-rendering
Open

Support mermaid charts rendering#4760
edu-diaz wants to merge 1 commit intoartifacthub:masterfrom
edu-diaz:support-mermaid-rendering

Conversation

@edu-diaz
Copy link
Copy Markdown

Summary

  • Add mermaid diagram rendering in package READMEs
  • Mermaid code blocks (```mermaid) are rendered as SVG diagrams instead of plain code
  • Falls back to displaying raw code if the diagram syntax is invalid

Details

  • Mermaid library is lazy-loaded via dynamic import() to avoid increasing the main bundle size
  • Uses securityLevel: 'strict' to prevent XSS
  • Unit tests included

Closes #4758

Signed-off-by: Eduardo Diaz <edudiazasencio@gmail.com>
@edu-diaz edu-diaz force-pushed the support-mermaid-rendering branch from 3ca14d3 to d54c746 Compare March 30, 2026 18:58
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.

Support mermaid charts rendering

1 participant