Skip to content

Commit eaccc2c

Browse files
committed
[Site] Add GitHub admonition Commonmark extension
1 parent e5f51fe commit eaccc2c

File tree

4 files changed

+71
-4
lines changed

4 files changed

+71
-4
lines changed

ux.symfony.com/assets/styles/components/_Changelog.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@
1919
border-right: 1px solid var(--bs-secondary-bg);
2020
}
2121

22+
.Changelog blockquote {
23+
color: grey;
24+
border-left: grey 3px solid;
25+
padding-left: .75rem;
26+
}
27+
2228
.ChangelogItem {
2329
display: grid;
2430
gap: 4rem;

ux.symfony.com/composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@
6565
"twig/intl-extra": "^3.17",
6666
"twig/markdown-extra": "^3.17",
6767
"twig/string-extra": "^3.17",
68-
"twig/twig": "^3.17"
68+
"twig/twig": "^3.17",
69+
"zenstruck/commonmark-extensions": "1.x-dev"
6970
},
7071
"require-dev": {
7172
"phpunit/phpunit": "^9.6.21",

ux.symfony.com/composer.lock

Lines changed: 61 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ux.symfony.com/src/Service/CommonMark/ConverterFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
use League\CommonMark\Extension\FrontMatter\FrontMatterExtension;
2020
use League\CommonMark\Extension\Mention\MentionExtension;
2121
use Symfony\Component\DependencyInjection\Attribute\AsDecorator;
22+
use Zenstruck\CommonMark\Extension\GitHub\AdmonitionExtension;
2223

2324
/**
2425
* @author Kevin Bond <[email protected]>
@@ -55,6 +56,7 @@ public function __invoke(): CommonMarkConverter
5556
->addExtension(new ExternalLinkExtension())
5657
->addExtension(new MentionExtension())
5758
->addExtension(new FrontMatterExtension())
59+
->addExtension(new AdmonitionExtension())
5860
->addRenderer(FencedCode::class, new CodeBlockRenderer($this->toolkitService))
5961
;
6062

0 commit comments

Comments
 (0)