A plugin for mdformat that automatically generates a table of contents (TOC) in Markdown documents. Version 0.5.0, requires Python >=3.9. Release cadence is low, maintained as part of the mdformat plugin ecosystem.
pip install mdformat-tocNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Formats a Markdown string and generates a table of contents using the plugin.
Upgrade to Python 3.9+
Install mdformat-toc in the same environment: pip install mdformat mdformat-toc
Run `pip install mdformat-toc` to install the plugin.
Ensure all headers are properly formatted (e.g., no empty headings, consistent indentation).