Skip to content

Commit 57377ba

Browse files
committed
feature #3559 Allow CommonMark extensions to easily be added (kbond)
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
2 parents 41058b9 + 1d5b927 commit 57377ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"require-dev": {
2222
"symfony/phpunit-bridge": "^4.4.9|^5.0.9|^6.0",
2323
"erusev/parsedown": "^1.7",
24-
"league/commonmark": "^1.0",
24+
"league/commonmark": "^1.0|^2.0",
2525
"league/html-to-markdown": "^4.8|^5.0",
2626
"michelf/php-markdown": "^1.8"
2727
},

0 commit comments

Comments
 (0)