2025-09-05 14:59:21 +08:00

20 lines
443 B
TypeScript

/**
* Add `id`s to headings.
*
* @param {Options | null | undefined} [options]
* Configuration (optional).
* @returns
* Transform.
*/
export default function rehypeSlug(options?: Options | null | undefined): (tree: Root) => undefined;
export type Root = import('hast').Root;
/**
* Configuration (optional).
*/
export type Options = {
/**
* Prefix to add in front of `id`s (default: `''`).
*/
prefix?: string;
};