From 8f38e4bbacf03093d33b6b82ae0a6abd9f17b812 Mon Sep 17 00:00:00 2001 From: Bonchellon Date: Fri, 6 Feb 2026 02:35:10 +0300 Subject: [PATCH] 123 --- apps/web/src/components/editor/course-editor.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/src/components/editor/course-editor.tsx b/apps/web/src/components/editor/course-editor.tsx index ee629be..6ccc5dd 100644 --- a/apps/web/src/components/editor/course-editor.tsx +++ b/apps/web/src/components/editor/course-editor.tsx @@ -47,7 +47,7 @@ export function CourseEditor({ content, onChange }: CourseEditorProps) { StarterKit.configure({ heading: { levels: [1, 2, 3] }, codeBlock: { - HTMLAttributes: (node) => + HTMLAttributes: (node: { attrs: { language?: string } }) => node.attrs.language === 'mermaid' ? { class: 'mermaid rounded-lg p-4 bg-muted min-h-[80px]', 'data-language': 'mermaid' } : { class: 'rounded-lg bg-muted p-4 font-mono text-sm', 'data-language': node.attrs.language || '' },