Skip to content

Commit e3c5df7

Browse files
committed
add default admonition class
1 parent 3880ca7 commit e3c5df7

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/Directive/AdmonitionDirective.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@ public function processSub(Parser $parser, ?Node $document, string $variable, st
2020
$wrapperDiv = $parser->renderTemplate(
2121
'directives/admonition.html.twig',
2222
[
23-
// a bit strange, but on the old markup we literally
24-
// had a class of 'admonition-"
25-
'name' => '',
23+
'name' => 'default',
2624
'text' => $data,
2725
'class' => $options['class'] ?? null,
2826
]

tests/fixtures/expected/blocks/directives/admonition.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="utf-8" />
55
</head>
66
<body>
7-
<div class="admonition admonition- screencast_class">
7+
<div class="admonition admonition-default screencast_class">
88
<p class="admonition-title"> Screencast </p>
99
<p>Do you prefer video tutorials? Check out the the screencasts.</p>
1010
</div>

0 commit comments

Comments
 (0)