tableOfContent()
ts
function tableOfContent(): Node;Defined in: table-of-contents.ts:25
Builder-element for a table of contents
Returns
A markdown node
Example
ts
import { define, tableOfContent } from "@ogs-gmbh/markdown";
const markdown = define(
tableOfContent()
);
console.assert(
markdown.toString()
);See
https://vitepress.dev/guide/markdown#table-of-contents
Since
1.0.0
Author
Simon Kovtyk