UNPKG

fumadocs-core

Version:

The React.js library for building a documentation website

16 lines • 637 B
import { c as TOCItemType } from "../toc-BuHOTlzj.js"; import { Compatible } from "vfile"; import { PluggableList } from "unified"; /** * Get Table of Contents from markdown/mdx document (using remark) * * @param content - Markdown content or file */ export declare function getTableOfContents(content: Compatible): TOCItemType[]; /** * Get Table of Contents from markdown/mdx document (using remark) * * @param content - Markdown content or file * @param remarkPlugins - remark plugins to be applied first */ export declare function getTableOfContents(content: Compatible, remarkPlugins: PluggableList): Promise<TOCItemType[]>;