Skip to content

Commit 5fc8ed4

Browse files
authored
Finish dropdown directive (#67)
1 parent a13287d commit 5fc8ed4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Elastic.Markdown/Myst/Directives/AdmonitionBlock.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ public class AdmonitionBlock(DirectiveBlockParser parser, string admonition, Dic
1010

1111
public override string Directive => Admonition;
1212

13+
public string? Label { get; protected set; }
1314
public string? Classes { get; protected set; }
1415
public string? CrossReferenceName { get; private set; }
1516
public bool? DropdownOpen { get; private set; }
@@ -30,6 +31,7 @@ public string Title
3031

3132
public override void FinalizeAndValidate(ParserContext context)
3233
{
34+
Label = Prop("label");
3335
Classes = Properties.GetValueOrDefault("class");
3436
CrossReferenceName = Properties.GetValueOrDefault("name");
3537
DropdownOpen = PropBool("open");

0 commit comments

Comments
 (0)