({
codeblock,
...rest
}: {
codeblock: RawCode
className?: string
style?: React.CSSProperties
extraHandlers?: AnnotationHandler[]
})
| 36 | } |
| 37 | |
| 38 | export async function Code({ |
| 39 | codeblock, |
| 40 | ...rest |
| 41 | }: { |
| 42 | codeblock: RawCode |
| 43 | className?: string |
| 44 | style?: React.CSSProperties |
| 45 | extraHandlers?: AnnotationHandler[] |
| 46 | }) { |
| 47 | const { flags } = extractFlags(codeblock) |
| 48 | const highlighted = await highlight(codeblock, theme, { |
| 49 | annotationPrefix: flags.includes("p") ? "!!" : undefined, |
| 50 | }) |
| 51 | return <HighCode highlighted={highlighted} {...rest} /> |
| 52 | } |
| 53 | |
| 54 | export function HighCode({ |
| 55 | highlighted, |
nothing calls this directly
no test coverage detected
searching dependent graphs…