PHPackages                             benjaminhoegh/parsedown-extended - 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. benjaminhoegh/parsedown-extended

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

benjaminhoegh/parsedown-extended
================================

An extension for Parsedown.

v2.2.1(1w ago)5126.7k↓29.3%10[1 PRs](https://github.com/BenjaminHoegh/ParsedownExtended/pulls)1MITPHPPHP &gt;=7.4CI passing

Since Jun 11Pushed 5d ago5 watchersCompare

[ Source](https://github.com/BenjaminHoegh/ParsedownExtended)[ Packagist](https://packagist.org/packages/benjaminhoegh/parsedown-extended)[ Docs](https://github.com/benjaminhoegh/parsedown-extended)[ Fund](https://paypal.me/BenjaminHoegh)[ Fund](https://www.buymeacoffee.com/BenjaminHoegh)[ RSS](/packages/benjaminhoegh-parsedown-extended/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (10)Dependencies (12)Versions (43)Used By (1)

 [ ![ParsedownExtended](https://github.com/BenjaminHoegh/ParsedownExtended/raw/docs/parsedownExtended.png) ](https://github.com/BenjaminHoegh/ParsedownExtended)

### ParsedownExtended

[](#parsedownextended)

 A lightweight Parsedown extension with practical Markdown features and configurable output.

 [Documentation](https://benjaminhoegh.github.io/ParsedownExtended/) · [Report an issue](https://github.com/BenjaminHoegh/ParsedownExtended/issues/new/choose) · [Discussions](https://github.com/BenjaminHoegh/ParsedownExtended/discussions)

[![GitHub Release](https://camo.githubusercontent.com/32f5d665633f4281ff3364853d2461f18051d8d1c7a8b2df32103085aa0b89db/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f42656e6a616d696e486f6567682f5061727365646f776e457874656e6465643f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/32f5d665633f4281ff3364853d2461f18051d8d1c7a8b2df32103085aa0b89db/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f42656e6a616d696e486f6567682f5061727365646f776e457874656e6465643f7374796c653d666c61742d737175617265)[![Packagist Downloads](https://camo.githubusercontent.com/f5dda88f32e7a32b0133ff28c31879580b1936da66c948ed076da5d5b3d54e31/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f62656e6a616d696e686f6567682f7061727365646f776e2d657874656e6465643f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/f5dda88f32e7a32b0133ff28c31879580b1936da66c948ed076da5d5b3d54e31/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f62656e6a616d696e686f6567682f7061727365646f776e2d657874656e6465643f7374796c653d666c61742d737175617265)[![GitHub License](https://camo.githubusercontent.com/ea635ba78b90f7677a942ecd51be2ecade2e12689e08bce294b3f2c97f4137b3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f42656e6a616d696e486f6567682f5061727365646f776e457874656e6465643f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/ea635ba78b90f7677a942ecd51be2ecade2e12689e08bce294b3f2c97f4137b3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f42656e6a616d696e486f6567682f5061727365646f776e457874656e6465643f7374796c653d666c61742d737175617265)

About
-----

[](#about)

ParsedownExtended builds on [Parsedown](https://github.com/erusev/parsedown) and adds commonly requested Markdown features such as task lists, alerts, heading anchors, table of contents generation, math notation detection, emoji shortcodes, typographic replacements, and more.

Standalone versions of some extended features are also available as separate libraries:

- [Parsedown Toc](https://github.com/BenjaminHoegh/ParsedownToc)
- [Parsedown Math](https://github.com/BenjaminHoegh/ParsedownMath)

Requirements
------------

[](#requirements)

- PHP 7.4 or newer
- Parsedown 1.8 or newer
- Parsedown Extra 0.9 or newer when using Composer-installed dependencies

Getting started
---------------

[](#getting-started)

Install with Composer:

```
composer require benjaminhoegh/parsedown-extended
```

Then include Composer's autoloader and create a parser instance:

```
require 'vendor/autoload.php';

use BenjaminHoegh\ParsedownExtended\ParsedownExtended;

$parsedown = new ParsedownExtended();

echo $parsedown->text('Hello _Parsedown_!');
```

For inline Markdown only, use the inherited `line()` method:

```
echo $parsedown->line('Hello _Parsedown_!');
```

Configuration
-------------

[](#configuration)

ParsedownExtended exposes a configuration handler through `config()`.

```
$parsedown = new ParsedownExtended();

$parsedown->config()->set('toc', true);
$parsedown->config()->set('toc.levels', ['h1', 'h2', 'h3']);
$parsedown->config()->set('math.enabled', true);
$parsedown->config()->set('allow_raw_html', false);
```

Grouped configuration is also supported:

```
$parsedown->config()->set('toc', [
    'levels' => ['h1', 'h2', 'h3'],
    'tag' => '[TOC]',
    'id' => 'table-of-contents',
]);
```

For the full supported API and configuration paths, see the [Documentation](https://benjaminhoegh.github.io/ParsedownExtended/).

Table of contents
-----------------

[](#table-of-contents)

Use `text()` when you want `[TOC]` replaced automatically:

```
echo $parsedown->text($markdown);
```

Use `body()` and `contentsList()` when you want to render the document and table of contents separately:

```
$body = $parsedown->body($markdown);
$toc = $parsedown->contentsList();

echo $toc;
echo $body;
```

Security
--------

[](#security)

ParsedownExtended is a Markdown parser extension, not an HTML sanitizer.

If you render Markdown from untrusted users, review your `allow_raw_html` setting and sanitize the generated HTML according to your application's threat model.

Please do not open public issues for suspected security vulnerabilities. See [SECURITY.md](SECURITY.md) for reporting instructions.

Bugs and feature requests
-------------------------

[](#bugs-and-feature-requests)

Before opening an issue, please search existing and closed issues.

- Use issues for reproducible bugs.
- Use discussions for questions, ideas, and support.
- Include a minimal reproduction when reporting bugs.

Open a new issue here: [Issues](https://github.com/BenjaminHoegh/ParsedownExtended/issues/new/choose)

Contributing
------------

[](#contributing)

Contributions are welcome, especially focused bug fixes, documentation improvements, and small compatibility fixes.

Before starting large features or refactors, please open a discussion first so the scope can be agreed before work begins.

Please read the [contributing guidelines](https://github.com/BenjaminHoegh/ParsedownExtended/blob/main/.github/CONTRIBUTING.md) before opening a pull request.

Community
---------

[](#community)

Join [GitHub Discussions](https://github.com/BenjaminHoegh/ParsedownExtended/discussions) for questions, ideas, and project discussion.

License
-------

[](#license)

Code is released under the [MIT License](https://github.com/BenjaminHoegh/ParsedownExtended/blob/main/LICENSE.md).

Documentation is released under [Creative Commons](https://github.com/BenjaminHoegh/ParsedownExtended/blob/main/docs/LICENSE.md).

###  Health Score

63

—

FairBetter than 99% of packages

Maintenance99

Actively maintained with recent releases

Popularity42

Moderate usage in the ecosystem

Community20

Small or concentrated contributor base

Maturity75

Established project with proven stability

 Bus Factor1

Top contributor holds 96.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~79 days

Recently: every ~86 days

Total

38

Last Release

13d ago

Major Versions

0.1.6 → 1.0-beta-42019-12-16

v1.4.3 → v3.0.0-beta-12025-06-30

PHP version history (6 changes)0.1.1PHP &gt;=5.3.6

0.1.2PHP &gt;=5.6

0.1.5PHP &gt;=5.3

1.0PHP &gt;=7.2

v1.2.0PHP &gt;=7.4

v3.0.0-beta-1PHP ^7.4 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/cfdb3902b3df95c33fc7961a6a9a306831759b3992a7c897798cc4652f0a703f?d=identicon)[BenjaminHoegh](/maintainers/BenjaminHoegh)

---

Top Contributors

[![BenjaminHoegh](https://avatars.githubusercontent.com/u/22152591?v=4)](https://github.com/BenjaminHoegh "BenjaminHoegh (474 commits)")[![Copilot](https://avatars.githubusercontent.com/in/1143301?v=4)](https://github.com/Copilot "Copilot (8 commits)")[![KENNYSOFT](https://avatars.githubusercontent.com/u/6624567?v=4)](https://github.com/KENNYSOFT "KENNYSOFT (3 commits)")[![brainexcerpts](https://avatars.githubusercontent.com/u/8319592?v=4)](https://github.com/brainexcerpts "brainexcerpts (2 commits)")[![EmTeedee](https://avatars.githubusercontent.com/u/195600?v=4)](https://github.com/EmTeedee "EmTeedee (2 commits)")

---

Tags

extensionmarkdownparsedownparsedown-extendedparsedown-extraphpmarkdownparsedownmarkdown extendedparsedown extended

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/benjaminhoegh-parsedown-extended/health.svg)

```
[![Health](https://phpackages.com/badges/benjaminhoegh-parsedown-extended/health.svg)](https://phpackages.com/packages/benjaminhoegh-parsedown-extended)
```

###  Alternatives

[erusev/parsedown-extra

An extension of Parsedown that adds support for Markdown Extra.

84315.3M216](/packages/erusev-parsedown-extra)[tovic/parsedown-extra-plugin

Configurable Markdown to HTML converter with Parsedown Extra.

5934.9k](/packages/tovic-parsedown-extra-plugin)[taufik-nurrohman/parsedown-extra-plugin

Configurable Markdown to HTML converter with Parsedown Extra.

5932.6k](/packages/taufik-nurrohman-parsedown-extra-plugin)[maglnet/magl-markdown

Provides a ZF2 View Helper to render markdown syntax. It uses third-party libraries for the rendering and you can switch between different renderers.

23198.8k4](/packages/maglnet-magl-markdown)[alfredo-ramos/parsedown-extra-laravel

A Parsedown Extra package for Laravel

30155.5k1](/packages/alfredo-ramos-parsedown-extra-laravel)[pagerange/metaparsedown

Adds ability to have meta data in markdown files parsed by eursev/parsedown or eruseve/parsedown-extra

2638.3k2](/packages/pagerange-metaparsedown)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
