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(12mo ago)1251MITPHPPHP ^8.3CI passing

Since Jan 28Pushed 10mo ago1 watchersCompare

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

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

39

—

LowBetter than 84% of packages

Maintenance52

Moderate activity, may be stable

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity75

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

360d 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://avatars.githubusercontent.com/u/811553?v=4)[Ayesh Karunaratne](/maintainers/Ayesh)[@Ayesh](https://github.com/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)
```

###  Alternatives

[nmaier95/shopify-product-fetcher

Shopify for Craft CMS

534.9k](/packages/nmaier95-shopify-product-fetcher)[ip2location/ip2location-cakephp

Lookup for visitor's IP information, such as country, region, city, coordinates, zip code, time zone, ISP, domain name, connection type, area code, weather, MCC, MNC, mobile brand name, elevation and usage type.

204.7k](/packages/ip2location-ip2location-cakephp)[digithis/activehelper

Active helper is a simple active state system for your links in laravel 4

163.0k](/packages/digithis-activehelper)[heristop/sf-combine-plugin

Combines and compresses JavaScript and CSS files

181.2k](/packages/heristop-sf-combine-plugin)

PHPackages © 2026

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