PHPackages                             ayesh/markdown - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. ayesh/markdown

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

ayesh/markdown
==============

Fork of Parsedown with leaner code base, optimized for modern PHP.

v2.4.0(10mo ago)1251MITPHPPHP ^8.3CI passing

Since Jan 28Pushed 8mo ago1 watchersCompare

[ Source](https://github.com/Ayesh/markdown)[ Packagist](https://packagist.org/packages/ayesh/markdown)[ RSS](/packages/ayesh-markdown/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (12)Used By (0)

Markdown
========

[](#markdown)

Fork of [`erusev/parsedown`](https://github.com/erusev/parsedown) with modernized code base, maintained, and made even faster with micro-optimizations.

This project was forked from Parsedown 1.7.4, and has been maintained since. It tries to keep feature parity with Parsedown, but this project favors code maintainability, modern PHP features, security and performance.

- Uses modern PHP features such as [typed class constants](https://php.watch/versions/8.3/typed-constants), [typed properties](https://php.watch/versions/7.4/typed-properties), and several `preg_` and other string inspect/manipulation functions with [`str_contains`](https://php.watch/versions/8.0/str_contains), [`str_starts_with`](https://php.watch/versions/8.0/str_starts_with-str_ends_with), ['str\_ends\_with`](https://php.watch/versions/8.0/str_starts_with-str_ends_with), etc.
- Supports and requires [PHP 8.3](https://php.watch/versions/8.3)
- Latest PHPUnit version for tests
- Nesting and branching improvements
- Custom header support
- Table row class support
- Table column align support with `align` attributes and not inline styles (helps with CSP)
- Blockquote element custom class support

Markup differences
------------------

[](#markup-differences)

This library offers an opinionated list of markup improvements compared to the Common Mark spec:

Custom Header Support
---------------------

[](#custom-header-support)

Parsedown does not support header anchor tags. This library provides header anchors using this syntax:

```
## My Title {#my-title}
```

This yields:

```
My Title
```

Image lazy loading
------------------

[](#image-lazy-loading)

All the images, unless their URL ends with `#cover`, will get `loading=lazy` and `decode=asnc` attributes added to them.

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance58

Moderate activity, may be stable

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity74

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~162 days

Recently: every ~139 days

Total

11

Last Release

311d ago

Major Versions

v1.0.3 → v2.0.02023-12-27

PHP version history (2 changes)v1.0.0PHP ^8.0

v2.0.0PHP ^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/1703f88c1f225e3fadff28458e81328f86668d9631a8c489f45ea1aaebe12df2?d=identicon)[Ayesh](/maintainers/Ayesh)

---

Top Contributors

[![Ayesh](https://avatars.githubusercontent.com/u/811553?v=4)](https://github.com/Ayesh "Ayesh (66 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

PHPackages © 2026

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