PHPackages                             league/commonmark-ext-strikethrough - 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. league/commonmark-ext-strikethrough

Abandoned → [league/commonmark](/?search=league%2Fcommonmark)ArchivedCommonmark-extension[Parsing &amp; Serialization](/categories/parsing)

league/commonmark-ext-strikethrough
===================================

Strikethrough support for the PHP League's CommonMark Markdown parser

v1.1.0(6y ago)764.3k1MITPHPPHP ^7.1

Since Sep 30Pushed 6y ago5 watchersCompare

[ Source](https://github.com/thephpleague/commonmark-ext-strikethrough)[ Packagist](https://packagist.org/packages/league/commonmark-ext-strikethrough)[ Docs](https://github.com/thephpleague/commonmark-ext-strikethrough)[ Patreon](https://www.patreon.com/colinodell)[ RSS](/packages/league-commonmark-ext-strikethrough/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (2)Versions (10)Used By (0)

Strikethrough support for `league/commonmark`
=============================================

[](#strikethrough-support-for-leaguecommonmark)

[![Latest Version on Packagist](https://camo.githubusercontent.com/42e30a25d3d1863d533b38eb09fd7d366a0818d0f2c07e644bd600a9fe6b171c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c65616775652f636f6d6d6f6e6d61726b2d6578742d737472696b657468726f7567682e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/league/commonmark-ext-strikethrough)[![Software License](https://camo.githubusercontent.com/55154e1c6dc4b715a2f2b89d38640fc517c3e2df08677a115582af0d21a80a11/687474703a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/9c1399aad9c26236d57e25874a2edd76d70638019b8c0e3d21df65f107b218ee/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7468657068706c65616775652f636f6d6d6f6e6d61726b2d6578742d737472696b657468726f7567682f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/thephpleague/commonmark-ext-strikethrough)[![Coverage Status](https://camo.githubusercontent.com/dae1348007027a41576d6c99c85b9f80676fb38ea70a4c26ea85cfeae94e89e5/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f7468657068706c65616775652f636f6d6d6f6e6d61726b2d6578742d737472696b657468726f7567682e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/thephpleague/commonmark-ext-strikethrough/code-structure)[![Quality Score](https://camo.githubusercontent.com/5a1f459dd9d5875233ad9d17c2fa9683306544b6d52c96883bd47d7dd01c17a0/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f7468657068706c65616775652f636f6d6d6f6e6d61726b2d6578742d737472696b657468726f7567682e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/thephpleague/commonmark-ext-strikethrough)[![Total Downloads](https://camo.githubusercontent.com/63c578ca72850153187c4437ecf378d4a2b1163a8ce9af0ade42689351126305/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c65616775652f636f6d6d6f6e6d61726b2d6578742d737472696b657468726f7567682e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/league/commonmark-ext-strikethrough)

This extension adds strikethrough Markdown support for the [league/commonmark](link-league-commonmark) PHP Markdown parsing engine, which itself is based on the CommonMark spec.

It allows users to use `~~` in order to indicate text that should be rendered within `` tags.

Installation
------------

[](#installation)

This project can be installed via Composer:

```
$ composer require league/commonmark-ext-strikethrough
```

Usage
-----

[](#usage)

Extensions can be added to any new `Environment`:

```
use League\CommonMark\CommonMarkConverter;
use League\CommonMark\Environment;
use League\CommonMark\Ext\Strikethrough\StrikethroughExtension;

// Obtain a pre-configured Environment with all the CommonMark parsers/renderers ready-to-go
$environment = Environment::createCommonMarkEnvironment();

// Add this extension
$environment->addExtension(new StrikethroughExtension());

// Instantiate the converter engine and start converting some Markdown!
$converter = new CommonMarkConverter($config, $environment);
echo $converter->convertToHtml('This extension is ~~good~~ great!');
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Colin O'Dell](https://github.com/colinodell)
- [uAfrica Technologies (Pty) Ltd](https://github.com/uafrica)
- [All Contributors](../../contributors)

License
-------

[](#license)

This library is licensed under the MIT license. See the `LICENSE` file for more information.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 57.8% 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 ~183 days

Recently: every ~87 days

Total

8

Last Release

2229d ago

Major Versions

v0.4.0 → v1.0.0-beta12019-05-27

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/534693?v=4)[Frank de Jonge](/maintainers/frankdejonge)[@frankdejonge](https://github.com/frankdejonge)

![](https://www.gravatar.com/avatar/4325b62a6ad366c731c3120595d861469be50f9da88df3ea99752c30ff98c179?d=identicon)[colinodell](/maintainers/colinodell)

---

Top Contributors

[![colinodell](https://avatars.githubusercontent.com/u/202034?v=4)](https://github.com/colinodell "colinodell (26 commits)")[![dakota](https://avatars.githubusercontent.com/u/83255?v=4)](https://github.com/dakota "dakota (8 commits)")[![pjeby](https://avatars.githubusercontent.com/u/3527052?v=4)](https://github.com/pjeby "pjeby (5 commits)")[![johanmeiring](https://avatars.githubusercontent.com/u/1214876?v=4)](https://github.com/johanmeiring "johanmeiring (4 commits)")[![laurentbardin](https://avatars.githubusercontent.com/u/1110159?v=4)](https://github.com/laurentbardin "laurentbardin (1 commits)")[![stickler-ci](https://avatars.githubusercontent.com/u/16011037?v=4)](https://github.com/stickler-ci "stickler-ci (1 commits)")

---

Tags

commonmarkcommonmark-extensionmarkdownphpstrikethroughmarkdowncommonmarkextensionstrikethroughstrikeout

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/league-commonmark-ext-strikethrough/health.svg)

```
[![Health](https://phpackages.com/badges/league-commonmark-ext-strikethrough/health.svg)](https://phpackages.com/packages/league-commonmark-ext-strikethrough)
```

###  Alternatives

[zoon/commonmark-ext-youtube-iframe

Extension for league/commonmark to replace youtube link with iframe

12275.9k1](/packages/zoon-commonmark-ext-youtube-iframe)

PHPackages © 2026

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