markdown-extra
markdown-extra copied to clipboard
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.