unstale

npm / doctoc

doctoc

What changed in doctoc 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-24.

1 breaking10 new APIs and options2 behavior and defaults10 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.2.5 on npm

doctoc 223 changes

Breaking changes 1

  • Adds the ability to define the minimum heading level.

    2.3.0release notes

New APIs and options 10

  • Add a minLines-based option for generating a table of contents.

    2.5.0release notes

  • Allow a different symbol to be used for each table-of-contents level.

    2.5.0release notes

  • Allow configuring where a new table of contents is inserted.

    2.5.0release notes

  • Adds control over the header and footer.

    2.4.0release notes

  • Adds control over indenting width.

    2.4.0release notes

  • Logging verbosity can be managed using the log level.

    2.4.0release notes

  • Adds configurable padding before the title.

    2.4.0release notes

  • Adds a dry run option for CI environments.

    2.3.0release notes

  • Adds support for MDX.

    2.3.0release notes

  • Adds the ability to define the minimum number of items in a table of contents.

    2.3.0release notes

Behavior and default changes 2

  • Support frontmatter in documents when generating a table of contents.

    2.5.0release notes

  • Support header IDs included in header text when generating the table of contents.

    2.5.0release notes

Fixes and other changes 10