PHPackages                             keinos/parsedown-toc - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. keinos/parsedown-toc

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

keinos/parsedown-toc
====================

Table of Contents Extension for Parsedown, the Parser for Markdown.

v1.4.1(1y ago)1520.7k4[6 issues](https://github.com/KEINOS/parsedown-extension_table-of-contents/issues)2MITPHPPHP &gt;=5.5.0 &lt;=8.4CI passing

Since Sep 21Pushed 1y ago3 watchersCompare

[ Source](https://github.com/KEINOS/parsedown-extension_table-of-contents)[ Packagist](https://packagist.org/packages/keinos/parsedown-toc)[ Docs](https://github.com/KEINOS/parsedown-extension_table-of-contents/)[ RSS](/packages/keinos-parsedown-toc/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (10)Dependencies (1)Versions (14)Used By (2)

[![Unit Tests](https://github.com/KEINOS/parsedown-extension_table-of-contents/actions/workflows/unit-tests.yml/badge.svg)](https://github.com/KEINOS/parsedown-extension_table-of-contents/actions/workflows/unit-tests.yml)[![Supported PHP Version Badge](https://camo.githubusercontent.com/28b54d155015c61b7560f898be6ab39070bb82923e0533baaeeaf153dc358322/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6b65696e6f732f7061727365646f776e2d746f63)](https://github.com/KEINOS/parsedown-extension_table-of-contents/blob/master/composer.json#L19 "Supported PHP Version")[![Parsedown Version Badge](https://camo.githubusercontent.com/06f941d2f595c2c757b01c83e884d6bf88aaa6d4c2d5df24ef5f2da570505040/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b65696e6f732f7061727365646f776e2d746f63)](https://packagist.org/packages/keinos/parsedown-toc "View in Packagist")[![PHPDoc Badge](https://camo.githubusercontent.com/c87776fc938039075d0b651bd74c018f828c6908c0f701489252d2ca03bc1bd6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505f446f632d7265666572656e63652d626c75653f6c6f676f3d706870)](https://keinos.github.io/parsedown-extension_table-of-contents/ "View PHP Doc reference")

Parsedown ToC Extension
=======================

[](#parsedown-toc-extension)

Listing Table of Contents Extension for [Parsedown](http://parsedown.org/).

This [simple PHP file](https://github.com/KEINOS/parsedown-extension_table-of-contents/blob/master/Extension.php) extends [Parsedown Vanilla](https://github.com/erusev/parsedown) / [ParsedownExtra](https://github.com/erusev/parsedown-extra) to generate a list of header index (a.k.a. Table of Contents or ToC), from a markdown text given.

- For PHP 8.4+ users: see [supported PHP version](#requirements) for more details.

Basic Usage
-----------

[](#basic-usage)

Parsedown Vanilla
```
