PHPackages                             league/commonmark-ext-inlines-only - 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-inlines-only

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

league/commonmark-ext-inlines-only
==================================

Extension for league/commonmark which only renders inline text

v1.1.0(6y ago)431.1k↓10.7%21BSD-3-ClausePHPPHP ^7.1

Since Mar 11Pushed 6y ago4 watchersCompare

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

READMEChangelog (5)Dependencies (2)Versions (6)Used By (1)

Inline-only extension for `league/commonmark`
=============================================

[](#inline-only-extension-for-leaguecommonmark)

[![Latest Version on Packagist](https://camo.githubusercontent.com/ba63a3ae62d6cc2196fb4c48b1290a91f33e3fa8d892e59eecbd9b373f4011c8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c65616775652f636f6d6d6f6e6d61726b2d6578742d696e6c696e65732d6f6e6c792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/league/commonmark-ext-inlines-only)[![Software License](https://camo.githubusercontent.com/f4927c28d46f9aff0a32ba934d27da23943c7e31876f86d6362e41a56e9c66ad/687474703a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4253442d2d332d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/374fded50727552721fe3ca9e85e4daf8b154e61c8e13b341ecead3bd7fdbcf0/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7468657068706c65616775652f636f6d6d6f6e6d61726b2d6578742d696e6c696e65732d6f6e6c792f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/thephpleague/commonmark-ext-inlines-only)[![Coverage Status](https://camo.githubusercontent.com/ce6e103b13e3e459768def3ca92374d49cb98004050b93fdc4a88ae527ffa043/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f7468657068706c65616775652f636f6d6d6f6e6d61726b2d6578742d696e6c696e65732d6f6e6c792e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/thephpleague/commonmark-ext-inlines-only/code-structure)[![Quality Score](https://camo.githubusercontent.com/3f6a834ec28b7372ca5f8adec74716498caca847c83108d068f55299d53c05a4/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f7468657068706c65616775652f636f6d6d6f6e6d61726b2d6578742d696e6c696e65732d6f6e6c792e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/thephpleague/commonmark-ext-inlines-only)[![Total Downloads](https://camo.githubusercontent.com/56154db1bb6a4f155a0129552bf2384e95c4c88c8f13bf200014ffca95b7ec43/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c65616775652f636f6d6d6f6e6d61726b2d6578742d696e6c696e65732d6f6e6c792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/league/commonmark-ext-inlines-only)

DEPRECATED
----------

[](#deprecated)

**This extension has been deprecated**. All of its functionality now exists in [`league/commonmark`](https://github.com/thephpleague/commonmark) 1.3+ under the `League\CommonMark\Extension\InlinesOnly` namespace, so you should upgrade to that version and use that bundled extension instead of this one.

Overview
--------

[](#overview)

This extension configures the [`league/commonmark` Markdown parser for PHP](https://github.com/thephpleague/commonmark) to only render inline elements - no paragraph tags, headers, code blocks, etc.

Install
-------

[](#install)

Via Composer

```
$ composer require league/commonmark-ext-inlines-only
```

Usage
-----

[](#usage)

Although you normally add extra extensions to the default core one, we're not going to do that here, because this is essentially a slimmed-down version of the core extension:

```
use League\CommonMark\CommonMarkConverter;
use League\CommonMark\Environment;
use League\CommonMark\Ext\InlinesOnly\InlinesOnlyExtension;

// Create a new, empty environment
$environment = new Environment();

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

// Instantiate the converter engine and start converting some Markdown!
$converter = new CommonMarkConverter($config, $environment);
echo $converter->convertToHtml('**Hello World!**');
```

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)
- [John MacFarlane](https://github.com/jgm)
- [All Contributors](../../contributors)

License
-------

[](#license)

This library is licensed under the BSD-3 license. See the [License File](LICENSE.md) for more information.

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 92.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 ~97 days

Total

5

Last Release

2235d ago

Major Versions

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

PHP version history (2 changes)v0.1.0PHP &gt;=5.6

v0.2.0PHP ^7.1

### 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 (13 commits)")[![glensc](https://avatars.githubusercontent.com/u/199095?v=4)](https://github.com/glensc "glensc (1 commits)")

---

Tags

commonmarkcommonmark-extensioninlinesmarkdownphpmarkdowncommonmarkextensioninline

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  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)
