Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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