Skip to content

Commit

Permalink
fix linting error
Browse files Browse the repository at this point in the history
  • Loading branch information
a-hariti committed Nov 7, 2024
1 parent 894d7d3 commit 0ba715d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/mermaid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 ?? '';
Expand Down

0 comments on commit 0ba715d

Please sign in to comment.