(feat): added mermaid rendering support in markdown (#676)

This commit is contained in:
Thomas Durieux authored and GitHub committed 2026-04-15 09:56:35 +02:00
1 parent 85f05cd698
commit 2621dfd7fc
9 files changed
+5657 -3

No files matched your search

+1
View File
@@ -182,5 +182,6 @@ function renderMD(md, baseUrlValue) {
throwOnError: false,
})
);
marked.use(markedMermaid());
return DOMPurify.sanitize(marked.parse(md, { renderer }));
}