Skip to content

feat: added mermaid rendering support in markdown#676

Merged
tdurieux merged 1 commit intomainfrom
claude/rebase-pr-489-T9oTQ
Apr 15, 2026
Merged

feat: added mermaid rendering support in markdown#676
tdurieux merged 1 commit intomainfrom
claude/rebase-pr-489-T9oTQ

Conversation

@tdurieux
Copy link
Copy Markdown
Owner

Summary

Rebased version of #489 by @souhailaS to resolve merge conflicts and allow merging.

  • Adds mermaid diagram rendering support in markdown (flowcharts, sequence diagrams, pie charts, state diagrams)
  • Adds mermaid.min.js and marked-mermaid.js extensions
  • Adds mermaid.css for diagram styling
  • Updates gulpfile.js to include mermaid assets in the build
  • Registers the mermaid extension in renderMD() while preserving the DOMPurify.sanitize() wrapper from main

Conflict resolution

  • public/script/utils.js: Combined the PR's marked.use(markedMermaid()) with main's DOMPurify.sanitize() wrapper
  • public/css/all.min.css and public/script/bundle.min.js: Rebuilt via gulp to include the new mermaid assets

Closes #489

https://claude.ai/code/session_01VcoDio6aDX7VWni8YizF86

@tdurieux tdurieux merged commit 2621dfd into main Apr 15, 2026
2 checks passed
@tdurieux tdurieux deleted the claude/rebase-pr-489-T9oTQ branch April 15, 2026 07:56
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.

2 participants