mirror of
https://github.com/twigphp/Twig.git
synced 2026-10-17 17:25:15 +00:00
e05e818761
This PR was merged into the 3.x branch.
Discussion
----------
Allow usage of other Markdown converters than CommonMark in LeagueMarkdown
Since the `CommonMarkConverter` from `League\CommonMark` doesn't allow customizing the `Environment` class at construct-time, this simple change allows providing an instance the parent class, so we can both inject a config to the converter AND a custom list of extensions (like `CommonMarkCoreExtension`) via the constructor.
This PR fixes #3581
Commits
-------
81e66e96bf Update LeagueMarkdown.php