Fix svelte-check type error in MermaidCodeBlock NodeView

Cast the NodeView factory return to `any` to satisfy the
CodeBlockOptions type constraint in strict mode.
This commit is contained in:
xarmian
2026-03-28 00:48:53 +00:00
parent dbecb741c6
commit a03b6d7bf8
+2 -2
View File
@@ -45,7 +45,7 @@
// detecting our SVG insertion and triggering an infinite re-parse loop.
const MermaidCodeBlock = CodeBlock.extend({
addNodeView() {
return ({ node }: any) => {
return (({ node }: any) => {
const lang = node.attrs.language;
// Non-mermaid: default rendering
@@ -105,7 +105,7 @@
return !code.contains(mutation.target);
},
};
};
}) as any;
},
});