CommonMarkBundle v2 !

Published on 11/14/21 at 6:33 PM.

Releasing aymdev/commonmark-bundle v2.

CommonMarkBundle v2 !

After a year without working on it, v2 of my Symfony bundle for league/commonmark is finally released !

GitHub: AymDev/CommonMarkBundle

What's new ?

The minimum league/commonmark version changed from v1.5 to v2 and PHP minimum versionis now 7.4 like CommonMark v2. That's all, there's no new feature !

Compatibility with CommonMark v1 in the bundle's v1 would have been hard to keep (I couldn't bring a BC break nor keep deprecation notices). If you still want to use it, the first version of the bundle is still available and well !

How to upgrade ?

The bundle configuration hasn't changed, but it is recommended to read the migration guide, especially about configuration options.

If you only use the Twig filter in your templates, there's nothing else to do. If you get the converters in your PHP classes, you'll need to change the injected service typehint from League\CommonMark\CommonMarkConverter to League\CommonMark\MarkdownConverter.

Feel free to give some feedback, report any bug, or even contribute !

Comments: 0

Robot invasion coming from robohash.org