This package adds Table of Contents capability (TOC) to PHP Markdown package.
TOC functionality is ported from Sculpin project. Sculpin is Static Site Generator written in PHP and based on Symfony.
To install, use composer:
composer require jampire/toc-markdown-extra
Please, see my article and PHP Markdown documentation.
You can use PhpStorm IDE with Markdown (bundled) plugin to automatically
generate TOC as PhpStorm uses the same algorithm for id
generation.
The MIT License (MIT). Please see License File for more information.