@tanstack/highlight
Version:
Tiny class-based syntax highlighting for documentation.
15 lines (14 loc) • 631 B
TypeScript
import type { Highlighter, HighlightDecoration, RenderedCodeBlockData } from './core.js';
export type HighlightedCodeBlockProps = RenderedCodeBlockData & {
className?: string;
};
export type CreateHighlightedCodeBlockPropsOptions = {
className?: string;
code: string;
decorations?: ReadonlyArray<HighlightDecoration>;
highlighter: Highlighter;
lang?: string;
lineNumbers?: boolean;
title?: string;
};
export declare function createHighlightedCodeBlockProps({ className, code, decorations, highlighter, lang, lineNumbers, title, }: CreateHighlightedCodeBlockPropsOptions): HighlightedCodeBlockProps;