PHPackages                             twig/markdown-extra - 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. [Templating &amp; Views](/categories/templating)
4. /
5. twig/markdown-extra

ActiveLibrary[Templating &amp; Views](/categories/templating)

twig/markdown-extra
===================

A Twig extension for Markdown

v3.24.0(3mo ago)12114.3M—0.9%7[1 PRs](https://github.com/twigphp/markdown-extra/pulls)20MITPHPPHP &gt;=8.1.0CI failing

Since Aug 10Pushed 2mo ago7 watchersCompare

[ Source](https://github.com/twigphp/markdown-extra)[ Packagist](https://packagist.org/packages/twig/markdown-extra)[ Docs](https://twig.symfony.com)[ GitHub Sponsors](https://github.com/fabpot)[ Fund](https://tidelift.com/funding/github/packagist/twig/twig)[ RSS](/packages/twig-markdown-extra/feed)WikiDiscussions 3.x Synced 1mo ago

READMEChangelog (2)Dependencies (14)Versions (63)Used By (20)

Twig Markdown Extension
=======================

[](#twig-markdown-extension)

This package is a Twig extension that provides the following:

- [`markdown_to_html`](https://twig.symfony.com/markdown_to_html) filter: generates HTML from a Markdown block;
- [`html_to_markdown`](https://twig.symfony.com/html_to_markdown) filter: generates Markdown from an HTML block.

###  Health Score

70

—

ExcellentBetter than 100% of packages

Maintenance84

Actively maintained with recent releases

Popularity62

Solid adoption and visibility

Community39

Small or concentrated contributor base

Maturity81

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 70.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 ~38 days

Total

63

Last Release

100d ago

Major Versions

v2.15.4 → v3.5.02022-12-27

v2.15.5 → v3.5.12023-02-08

v2.15.6 → v3.7.12023-07-29

2.x-dev → v3.9.02024-02-10

3.x-dev → 4.x-dev2026-02-07

PHP version history (6 changes)v2.12.0PHP ^7.1.3

v2.13.0PHP &gt;=7.1.3

v3.8.0PHP &gt;=7.2.5

v3.12.0PHP &gt;=8.0.2

v3.20.0PHP &gt;=8.1.0

4.x-devPHP &gt;=8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/47313?v=4)[Fabien Potencier](/maintainers/fabpot)[@fabpot](https://github.com/fabpot)

---

Top Contributors

[![fabpot](https://avatars.githubusercontent.com/u/47313?v=4)](https://github.com/fabpot "fabpot (56 commits)")[![nicolas-grekas](https://avatars.githubusercontent.com/u/243674?v=4)](https://github.com/nicolas-grekas "nicolas-grekas (6 commits)")[![noniagriconomie](https://avatars.githubusercontent.com/u/13205768?v=4)](https://github.com/noniagriconomie "noniagriconomie (2 commits)")[![derrabus](https://avatars.githubusercontent.com/u/1506493?v=4)](https://github.com/derrabus "derrabus (2 commits)")[![kbond](https://avatars.githubusercontent.com/u/127811?v=4)](https://github.com/kbond "kbond (2 commits)")[![GromNaN](https://avatars.githubusercontent.com/u/400034?v=4)](https://github.com/GromNaN "GromNaN (1 commits)")[![jderusse](https://avatars.githubusercontent.com/u/578547?v=4)](https://github.com/jderusse "jderusse (1 commits)")[![jmsche](https://avatars.githubusercontent.com/u/3929498?v=4)](https://github.com/jmsche "jmsche (1 commits)")[![tobias-93](https://avatars.githubusercontent.com/u/3901745?v=4)](https://github.com/tobias-93 "tobias-93 (1 commits)")[![xabbuh](https://avatars.githubusercontent.com/u/1957048?v=4)](https://github.com/xabbuh "xabbuh (1 commits)")[![abdounikarim](https://avatars.githubusercontent.com/u/15892761?v=4)](https://github.com/abdounikarim "abdounikarim (1 commits)")[![xJuvi](https://avatars.githubusercontent.com/u/31671206?v=4)](https://github.com/xJuvi "xJuvi (1 commits)")[![barryvdh](https://avatars.githubusercontent.com/u/973269?v=4)](https://github.com/barryvdh "barryvdh (1 commits)")[![bobvandevijver](https://avatars.githubusercontent.com/u/1835343?v=4)](https://github.com/bobvandevijver "bobvandevijver (1 commits)")[![colinodell](https://avatars.githubusercontent.com/u/202034?v=4)](https://github.com/colinodell "colinodell (1 commits)")[![gerryd](https://avatars.githubusercontent.com/u/3003371?v=4)](https://github.com/gerryd "gerryd (1 commits)")

---

Tags

markdownphptwigtwig-extensiontwightmlmarkdown

### Embed Badge

![Health badge](/badges/twig-markdown-extra/health.svg)

```
[![Health](https://phpackages.com/badges/twig-markdown-extra/health.svg)](https://phpackages.com/packages/twig-markdown-extra)
```

###  Alternatives

[twig/html-extra

A Twig extension for HTML

777.6M41](/packages/twig-html-extra)[twig/string-extra

A Twig extension for Symfony String

21946.0M133](/packages/twig-string-extra)[twig/cssinliner-extra

A Twig extension to allow inlining CSS

23018.5M55](/packages/twig-cssinliner-extra)[symfony/ux-twig-component

Twig components for Symfony

21814.8M162](/packages/symfony-ux-twig-component)[twig/inky-extra

A Twig extension for the inky email templating engine

16612.5M47](/packages/twig-inky-extra)[symfony/ux-live-component

Live components for Symfony

1635.6M72](/packages/symfony-ux-live-component)

PHPackages © 2026

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