markdown-toc is a Node.js library for automatically generating tables of contents from Markdown files. It efficiently parses Markdown, identifies headings, and creates a formatted table of contents section. This tool offers options for controlling heading levels, depth, and styling of the generated TOC, ensuring clean and navigable documentation. Use it to simplify maintenance of large Markdown documents and improve user experiences. Supports custom rendering and CLI usage.