From 0ba715db83c2334dc0558f7128fb738cc7e2ec09 Mon Sep 17 00:00:00 2001 From: Abdellah Hariti Date: Thu, 7 Nov 2024 11:28:23 +0100 Subject: [PATCH] fix linting error --- src/components/mermaid.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/mermaid.tsx b/src/components/mermaid.tsx index 80d31e547ce2a..174d44fef8b1e 100644 --- a/src/components/mermaid.tsx +++ b/src/components/mermaid.tsx @@ -30,9 +30,8 @@ export default function Mermaid() { if (mermaidBlocks.length === 0) { return; } - // @ts-ignore const {default: mermaid} = await import('mermaid'); - mermaid.initialize({startOnLoad: false, theme: 'light'}); + mermaid.initialize({startOnLoad: false}); mermaidBlocks.forEach(lightModeblock => { // get rid of code highlighting const code = lightModeblock.textContent ?? '';