Skip to content

Commit 81f7aa4

Browse files
mlopezFCjavier-godoy
authored andcommitted
fix: disable error rendering
Fixes #26
1 parent 97f82d8 commit 81f7aa4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/resources/META-INF/resources/frontend/markdown-editor.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ import rehypeSanitize from "rehype-sanitize";
3535
import mermaid from "mermaid";
3636
import { getCodeString } from "rehype-rewrite";
3737

38+
mermaid.initialize({
39+
suppressErrorRendering: true,
40+
});
41+
3842
const randomid = () => parseInt(String(Math.random() * 1e15), 10).toString(36);
3943
const Code = ({ inline, children = [], className, ...props }) => {
4044
const demoid = useRef(`dome${randomid()}`);

0 commit comments

Comments
 (0)