fumadocs-core
Version:
The React.js library for building a documentation website
18 lines (17 loc) • 475 B
TypeScript
import { Processor, Transformer } from "unified";
import { Root } from "hast";
//#region src/mdx-plugins/rehype-toc.d.ts
interface RehypeTocOptions {
/**
* Export generated toc as a variable
*
* @defaultValue true
*/
exportToc?: boolean;
}
declare function rehypeToc(this: Processor, {
exportToc
}?: RehypeTocOptions): Transformer<Root, Root>;
//#endregion
export { rehypeToc as n, RehypeTocOptions as t };
//# sourceMappingURL=rehype-toc-DJvSyE0o.d.ts.map