Skip to content

Commit fcb20e4

Browse files
authored
feat(web): render Mermaid diagrams with pele (#21472)
Co-authored-by: maria-rcks <254055478+maria-rcks@users.noreply.github.com>
1 parent f9dd259 commit fcb20e4

7 files changed

Lines changed: 233 additions & 1020 deletions

File tree

‎apps/web/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@
6565
"katex": "^0.16.47",
6666
"lucide": "^0.564.0",
6767
"lucide-react": "^0.564.0",
68-
"mermaid": "^11.17.2",
6968
"morphicons": "^1.7.1",
69+
"pele": "^1.8.0",
7070
"react": "catalog:",
7171
"react-dom": "catalog:",
7272
"react-markdown": "^10.1.0",

‎apps/web/src/components/ChatMarkdown.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1107,7 +1107,7 @@ function MarkdownMermaidCodeBlock({
11071107
</pre>
11081108
}
11091109
>
1110-
<MermaidDiagram source={code} theme={theme} onExpand={onExpand} />
1110+
<MermaidDiagram source={code} onExpand={onExpand} />
11111111
</Suspense>
11121112
{searching ? (
11131113
<pre ref={sourceRevealRef} hidden aria-hidden>

‎apps/web/src/components/chat/MermaidDiagram.browser.test.tsx‎

Lines changed: 0 additions & 66 deletions
This file was deleted.

0 commit comments

Comments
 (0)