UNPKG

rehype-code-titles

Version:

Rehype plugin for parsing code blocks and adding titles to code blocks

8 lines (7 loc) 258 B
import type * as H from 'hast'; declare type Options = { customClassName?: string; titleSeparator?: string; }; declare function rehypeCodeTitles({ customClassName, titleSeparator }?: Options): (tree: H.Root) => void; export default rehypeCodeTitles;