mirror of
https://github.com/twigphp/Twig.git
synced 2026-10-18 09:45:26 +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
Twig Markdown Extension
This package is a Twig extension that provides the following:
-
markdown_to_htmlfilter: generates HTML from a Markdown block; -
html_to_markdownfilter: generates Markdown from an HTML block.