123
This commit is contained in:
@ -94,7 +94,7 @@ export function CourseEditor({ content, onChange }: CourseEditorProps) {
|
||||
if (!editorRef.current) return;
|
||||
const mermaidNodes = editorRef.current.querySelectorAll('pre[data-language="mermaid"]');
|
||||
if (mermaidNodes.length === 0) return;
|
||||
mermaid.run({ nodes: Array.from(mermaidNodes), suppressErrors: true }).catch(() => {});
|
||||
mermaid.run({ nodes: Array.from(mermaidNodes) as HTMLElement[], suppressErrors: true }).catch(() => {});
|
||||
}, [content]);
|
||||
|
||||
const setLink = useCallback(() => {
|
||||
|
||||
Reference in New Issue
Block a user