TocOptions
import { TocOptions } from "jsr:@ende/markdown";interface
interface TocOptionsOptions for toc().
Example: Usage
import type { TocOptions } from "@ende/markdown/types";
import { assertEquals } from "@ende/assert";
const options: TocOptions = { minDepth: 2, maxDepth: 3 };
assertEquals(options.maxDepth, 3);
Properties
minDepth
minDepth?: numberThe shallowest heading level to include.
Default: 1
maxDepth
maxDepth?: numberThe deepest heading level to include.
Default: 6