PHPackages                             8fold/commonmark-partials - 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. 8fold/commonmark-partials

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

8fold/commonmark-partials
=========================

An extension of PHP League's CommonMark library to enable partials.

1.0.0(2y ago)1908[1 issues](https://github.com/8fold/commonmark-partials/issues)1MITPHPPHP ^8.1

Since May 15Pushed 2y ago1 watchersCompare

[ Source](https://github.com/8fold/commonmark-partials)[ Packagist](https://packagist.org/packages/8fold/commonmark-partials)[ GitHub Sponsors](https://github.com/8fold)[ GitHub Sponsors](https://github.com/joshbruce)[ RSS](/packages/8fold-commonmark-partials/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (4)Versions (4)Used By (1)

8fold Partials for CommonMark
=============================

[](#8fold-partials-for-commonmark)

This library is an extension for the [CommonMark parser](https://github.com/thephpleague/commonmark) from the PHP League, adding the ability to insert renderable partials.

In other words, and with loads of humility, and we could be wrong, Markdown can feel more like a template engine.

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

[](#installation)

```
composer require 8fold/commonmark-partials

```

Usage
-----

[](#usage)

⚠️ Warning: Users of this library are responsible for sanitizing content.

Create your partial class:

```
