EnhanceTocOptions: {
    contentSelector?: string;
    headings?: string;
    scrollSpy?: boolean;
}

Options for enhanceToc.

Type declaration

  • OptionalcontentSelector?: string

    Selector for the region whose headings populate the list. Defaults to main, article.

  • Optionalheadings?: string

    Selector for which headings to include. Defaults to h2,h3.

  • OptionalscrollSpy?: boolean

    Highlight the entry for the heading currently in view. Defaults to true.