Skip to content

Support mermaid charts rendering - #4760

Merged
cynthia-sg merged 1 commit into
artifacthub:masterfrom
edu-diaz:support-mermaid-rendering
Apr 13, 2026
Merged

Support mermaid charts rendering#4760
cynthia-sg merged 1 commit into
artifacthub:masterfrom
edu-diaz:support-mermaid-rendering

Conversation

@edu-diaz

Copy link
Copy Markdown
Contributor

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

@cynthia-sg cynthia-sg left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@cynthia-sg
cynthia-sg merged commit f8a182d into artifacthub:master Apr 13, 2026
13 checks passed
@eduardo-diaz-em

Copy link
Copy Markdown

@cynthia-sg gracias otra vez!

@edu-diaz
edu-diaz deleted the support-mermaid-rendering branch April 13, 2026 08:53
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

3 participants