@scalar/code-highlight
Version:
Central methods and themes for code highlighting in Scalar projects
10 lines • 465 B
TypeScript
import type { Element, ElementContent, Root, Text } from 'hast';
export declare function isText(element?: ElementContent): element is Text;
export declare function isElement(node?: ElementContent): node is Element;
export declare function textElement(value: string): Text;
export declare function lineBreak(): Text;
/**
* Adds lines to code blocks
*/
export declare function codeBlockLinesPlugin(): (tree: Root) => void;
//# sourceMappingURL=line-numbers.d.ts.map