mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-19 05:46:41 +00:00
3cefebac2b
This PR was squashed before being merged into the 3.x branch.
Discussion
----------
Allow CommonMark extensions to easily be added
1. I discovered that commonmark 2 works just fine with `markdown-extra` so I added to the `require-dev` of `markdown-extra`'s `composer.json`
2. Added `LeagueMarkdownFactory` to `markdown-extra` as discussed in #3558
3. In `twig-extra-bundle`, if commonmark (and the above factory) is available, wire up the factory with extensions added via the `twig.markdown.league_extension` DI tag
If this PR would be acceptable, I can add some tests.
(closes #3558)
Commits
-------
4b86f5ef Allow CommonMark extensions to easily be added
46 lines
1.3 KiB
JSON
46 lines
1.3 KiB
JSON
{
|
|
"name": "twig/extra-bundle",
|
|
"type": "symfony-bundle",
|
|
"description": "A Symfony bundle for extra Twig extensions",
|
|
"keywords": ["twig", "extra", "bundle"],
|
|
"homepage": "https://twig.symfony.com",
|
|
"license": "MIT",
|
|
"minimum-stability": "dev",
|
|
"authors": [
|
|
{
|
|
"name": "Fabien Potencier",
|
|
"email": "fabien@symfony.com",
|
|
"homepage": "http://fabien.potencier.org",
|
|
"role": "Lead Developer"
|
|
}
|
|
],
|
|
"require": {
|
|
"php": "^7.1.3|^8.0",
|
|
"symfony/framework-bundle": "^4.4|^5.0|^6.0",
|
|
"symfony/twig-bundle": "^4.4|^5.0|^6.0",
|
|
"twig/twig": "^2.7|^3.0"
|
|
},
|
|
"require-dev": {
|
|
"league/commonmark": "^1.0|^2.0",
|
|
"symfony/phpunit-bridge": "^4.4.9|^5.0.9|^6.0",
|
|
"twig/cache-extra": "^3.0",
|
|
"twig/cssinliner-extra": "^2.12|^3.0",
|
|
"twig/html-extra": "^2.12|^3.0",
|
|
"twig/inky-extra": "^2.12|^3.0",
|
|
"twig/intl-extra": "^2.12|^3.0",
|
|
"twig/markdown-extra": "^2.12|^3.0",
|
|
"twig/string-extra": "^2.12|^3.0"
|
|
},
|
|
"autoload": {
|
|
"psr-4" : { "Twig\\Extra\\TwigExtraBundle\\" : "" },
|
|
"exclude-from-classmap": [
|
|
"/Tests/"
|
|
]
|
|
},
|
|
"extra": {
|
|
"branch-alias": {
|
|
"dev-master": "3.2-dev"
|
|
}
|
|
}
|
|
}
|