Skip to content

Commit eb54102

Browse files
committed
fix errors in markdown.tsx
1 parent acc4e0d commit eb54102

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/components/Markdown.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,12 @@ import { useMarkdownHeadings } from '~/components/MarkdownHeadingContext'
1414
import { getNetlifyImageUrl } from '~/utils/netlifyImage'
1515
import { Tabs } from '~/components/Tabs'
1616
import { Copy } from 'lucide-react'
17-
import type {
18-
MarkdownHeading,
19-
MarkdownRenderResult,
17+
import {
18+
renderMarkdown,
19+
type MarkdownHeading,
2020
} from '~/utils/markdown/processor'
21+
import { transformerNotationDiff } from '@shikijs/transformers'
22+
import { createHighlighter, HighlighterGeneric } from 'shiki'
2123

2224
type HeadingLevel = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'
2325

0 commit comments

Comments
 (0)