View as Markdown

API reference: @salmonui/rich-text

HighlightFntype

import type { HighlightFn } from '@salmonui/rich-text';
type HighlightFn = (code: string, language: string | null) => readonly HighlightRange[];