({ codeblock }: { codeblock: RawCode })
| 25 | import { tooltip } from "./annotations/tooltip" |
| 26 | |
| 27 | export async function InlineCode({ codeblock }: { codeblock: RawCode }) { |
| 28 | const highlighted = await highlight(codeblock, theme) |
| 29 | return ( |
| 30 | <Inline |
| 31 | code={highlighted} |
| 32 | style={highlighted.style} |
| 33 | className="selection:bg-editor-selectionBackground" |
| 34 | /> |
| 35 | ) |
| 36 | } |
| 37 | |
| 38 | export async function Code({ |
| 39 | codeblock, |
nothing calls this directly
no test coverage detected
searching dependent graphs…