mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-19 05:46:41 +00:00
3cefebac2b
This PR was squashed before being merged into the 3.x branch.
Discussion
----------
Allow CommonMark extensions to easily be added
1. I discovered that commonmark 2 works just fine with `markdown-extra` so I added to the `require-dev` of `markdown-extra`'s `composer.json`
2. Added `LeagueMarkdownFactory` to `markdown-extra` as discussed in #3558
3. In `twig-extra-bundle`, if commonmark (and the above factory) is available, wire up the factory with extensions added via the `twig.markdown.league_extension` DI tag
If this PR would be acceptable, I can add some tests.
(closes #3558)
Commits
-------
4b86f5ef Allow CommonMark extensions to easily be added
Twig Extra Bundle
This package is a Symfony bundle that allows to use all "extra" extensions without any configuration.
Installation
composer require twig/extra-bundle