jampire/toc-markdown-extra

Adds Table of Contents capability to PHP Markdown Extra package

v1.0.1 2020-01-24 12:36 UTC

This package is auto-updated.

Last update: 2024-04-27 00:53:11 UTC


README

Build Status Scrutinizer coverage (GitHub/BitBucket) GitHub release (latest SemVer) PHP from Packagist GitHub tag (latest SemVer) GitHub Packagist GitHub contributors GitHub last commit contributions welcome

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.

Installation

To install, use composer:

composer require jampire/toc-markdown-extra

Usage

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.

License

The MIT License (MIT). Please see License File for more information.