From 5fc8ed4f68696e256ae883849f977d3ac25b8434 Mon Sep 17 00:00:00 2001 From: Martijn Laarman Date: Thu, 14 Nov 2024 10:36:20 +0100 Subject: [PATCH] Finish dropdown directive (#67) --- src/Elastic.Markdown/Myst/Directives/AdmonitionBlock.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Elastic.Markdown/Myst/Directives/AdmonitionBlock.cs b/src/Elastic.Markdown/Myst/Directives/AdmonitionBlock.cs index 19ec7270..3f6da661 100644 --- a/src/Elastic.Markdown/Myst/Directives/AdmonitionBlock.cs +++ b/src/Elastic.Markdown/Myst/Directives/AdmonitionBlock.cs @@ -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; } @@ -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");