Skip to content

Commit a4a265e

Browse files
committed
Update the generated code for admonitions
1 parent 4475ac5 commit a4a265e

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

src/Directive/AbstractAdmonitionDirective.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ final public function processSub(Parser $parser, ?Node $document, string $variab
3838
]
3939
);
4040

41-
return $parser->getNodeFactory()->createWrapperNode($document, $wrapperDiv, '</div></div>');
41+
return $parser->getNodeFactory()->createWrapperNode($document, $wrapperDiv, '</div>');
4242
}
4343

4444
final public function getName(): string

src/Directive/AdmonitionDirective.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function processSub(Parser $parser, ?Node $document, string $variable, st
2828
]
2929
);
3030

31-
return $parser->getNodeFactory()->createWrapperNode($document, $wrapperDiv, '</div></div>');
31+
return $parser->getNodeFactory()->createWrapperNode($document, $wrapperDiv, '</div>');
3232
}
3333

3434
public function getName(): string
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
<div class="admonition-wrapper{{ class ? (' '~class) : '' }}">
2-
<div class="admonition admonition-{{ name }}">
3-
<p class="admonition-title">{{ text }}</p>
1+
<div class="admonition admonition-{{ name }} {{ class ?? '' }}">
2+
<p class="admonition-title">{{ text }}</p>

0 commit comments

Comments
 (0)