We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent acc4e0d commit eb54102Copy full SHA for eb54102
src/components/Markdown.tsx
@@ -14,10 +14,12 @@ import { useMarkdownHeadings } from '~/components/MarkdownHeadingContext'
14
import { getNetlifyImageUrl } from '~/utils/netlifyImage'
15
import { Tabs } from '~/components/Tabs'
16
import { Copy } from 'lucide-react'
17
-import type {
18
- MarkdownHeading,
19
- MarkdownRenderResult,
+import {
+ renderMarkdown,
+ type MarkdownHeading,
20
} from '~/utils/markdown/processor'
21
+import { transformerNotationDiff } from '@shikijs/transformers'
22
+import { createHighlighter, HighlighterGeneric } from 'shiki'
23
24
type HeadingLevel = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'
25
0 commit comments