mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-04-23 13:56:10 +02:00
(feat): added mermaid rendering support in markdown (#676)
This commit is contained in:
@@ -182,5 +182,6 @@ function renderMD(md, baseUrlValue) {
|
||||
throwOnError: false,
|
||||
})
|
||||
);
|
||||
marked.use(markedMermaid());
|
||||
return DOMPurify.sanitize(marked.parse(md, { renderer }));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user