PHPackages                             daysofwonder/phpleague-commonmark-implicit-figures - 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. daysofwonder/phpleague-commonmark-implicit-figures

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

daysofwonder/phpleague-commonmark-implicit-figures
==================================================

Render images occurring by itself in a paragraph as `&lt;figure&gt;&lt;img ...&gt;&lt;/figure&gt;`, similar to pandoc's implicit figures

2.0.0(3y ago)26.4k↓33.3%[2 PRs](https://github.com/daysofwonder/phpleague-commonmark-implicit-figures/pulls)MITPHPPHP ^7.4

Since Mar 29Pushed 1y ago5 watchersCompare

[ Source](https://github.com/daysofwonder/phpleague-commonmark-implicit-figures)[ Packagist](https://packagist.org/packages/daysofwonder/phpleague-commonmark-implicit-figures)[ RSS](/packages/daysofwonder-phpleague-commonmark-implicit-figures/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (6)Used By (0)

CommonMark task Lists
=====================

[](#commonmark-task-lists)

[![License](https://camo.githubusercontent.com/c2bffd81d308ced1cc3b0d66fb0ed453ab478a5e17c988b780f9de986a390ee2/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://github.com/daysofwonder/phpleague-commonmark-implicit-figures/blob/master/LICENSE)

Render images occurring by itself in a paragraph as ``, clearly inspired from markdown-it-implicit-figures and similar to [pandoc's implicit figures](http://pandoc.org/README.html#images).

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

[](#installation)

This project can be installed via Composer:

```
composer require daysofwonder/phpleague-commonmark-implicit-figures

```

Usage
-----

[](#usage)

```
use League\CommonMark\Converter;
use League\CommonMark\DocParser;
use League\CommonMark\Environment;
use League\CommonMark\HtmlRenderer;
use DoW\CommonMark\ImplicitFigures\Extension;

$environment = Environment::createCommonMarkEnvironment();
$environment->addExtension(new \DoW\CommonMark\ImplicitFigures\Extension());

$converter = new Converter(new DocParser($environment), new HtmlRenderer($environment));

echo $converter->convertToHtml('![title](fig.png)');
```

Syntax
------

[](#syntax)

Example input:

```
text with ![](img.png)

![title](fig.png)

works with links too:

[![](fig.png)](page.html)
```

Output:

```
text with

works with links too:

```

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

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 ~663 days

Total

3

Last Release

1275d ago

Major Versions

0.1.0 → 1.0.02020-01-28

1.0.0 → 2.0.02022-11-14

PHP version history (2 changes)0.1.0PHP ^7.2

2.0.0PHP ^7.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/230216?v=4)[Florent Ruard-Dumaine](/maintainers/atalargo)[@atalargo](https://github.com/atalargo)

---

Top Contributors

[![atalargo](https://avatars.githubusercontent.com/u/230216?v=4)](https://github.com/atalargo "atalargo (5 commits)")

---

Tags

parsermarkdowncommonmarkfigure

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/daysofwonder-phpleague-commonmark-implicit-figures/health.svg)

```
[![Health](https://phpackages.com/badges/daysofwonder-phpleague-commonmark-implicit-figures/health.svg)](https://phpackages.com/packages/daysofwonder-phpleague-commonmark-implicit-figures)
```

###  Alternatives

[league/commonmark

Highly-extensible PHP Markdown parser which fully supports the CommonMark spec and GitHub-Flavored Markdown (GFM)

2.9k404.0M702](/packages/league-commonmark)[torchlight/torchlight-commonmark

A Commonmark extension for Torchlight, the syntax highlighting API.

29256.6k6](/packages/torchlight-torchlight-commonmark)[ows/commonmark-sup-sub-extensions

A sup/sub extension for CommonMark PHP implementation

107.7k](/packages/ows-commonmark-sup-sub-extensions)[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)
