Skip to content

Commit

Permalink
Finish dropdown directive (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mpdreamz authored Nov 14, 2024
1 parent a13287d commit 5fc8ed4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Elastic.Markdown/Myst/Directives/AdmonitionBlock.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ public class AdmonitionBlock(DirectiveBlockParser parser, string admonition, Dic

public override string Directive => Admonition;

public string? Label { get; protected set; }
public string? Classes { get; protected set; }
public string? CrossReferenceName { get; private set; }
public bool? DropdownOpen { get; private set; }
Expand All @@ -30,6 +31,7 @@ public string Title

public override void FinalizeAndValidate(ParserContext context)
{
Label = Prop("label");
Classes = Properties.GetValueOrDefault("class");
CrossReferenceName = Properties.GetValueOrDefault("name");
DropdownOpen = PropBool("open");
Expand Down

0 comments on commit 5fc8ed4

Please sign in to comment.