property TOCGeneratorOptions.containerSelector

CSS selector to limit heading extraction to a specific container Useful to exclude headings from sidebars, navigation, etc.

Examples

Example 1

"article" - only headings inside <article> tags

Type

string

Usage

import { type TOCGeneratorOptions } from ".";