Support Mermaid diagram rendering in MarkdownViewer (#1730)

* Implement Mermaid diagram support for MarkdownViewer

Co-authored-by: emako <24737061+emako@users.noreply.github.com>

* Replace the mermaid.min.js

https://cdn.jsdelivr.net/npm/mermaid@11.4.1/dist/mermaid.min.js

* Fix Mermaid diagram rendering by updating markdown-it highlight function

Co-authored-by: emako <24737061+emako@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: emako <24737061+emako@users.noreply.github.com>
Co-authored-by: ema <mccoy39082@163.com>
This commit is contained in:
Copilot
2025-08-02 02:09:52 +08:00
committed by GitHub
parent 67b5dbf310
commit 9fe37520d3
2 changed files with 2401 additions and 0 deletions

File diff suppressed because one or more lines are too long