Twig icon indicating copy to clipboard operation
Twig copied to clipboard

Added configuration for commonmark use in twig-extra-bundle.

Open doekenorg opened this issue 3 years ago • 0 comments

Following this tweet: https://twitter.com/ramsey/status/1561894460560138241, this PR adds the configuration options for commonmark to the twig-extra-bundle.

The configuration is added to the LeagueCommonMarkConverterFactory and in turn injected in the CommonMarkConverter. This way a user can provide the configuration for usage inside twig.

I'm not sure if adding the configuration inside the extension is the way to go.

Hope this helps out at least @ramsey :-)

Added ignoreExtraKeys to be somewhat future proof in case extra configuration is added later on, and also to be able to provide de configuration for extensions.

doekenorg avatar Aug 23 '22 19:08 doekenorg