From 1f8ab6f747f31a228ab2891bd66788540267b59f Mon Sep 17 00:00:00 2001 From: Martijn Laarman Date: Wed, 13 Nov 2024 12:58:58 +0100 Subject: [PATCH] fix compilation error --- src/Elastic.Markdown/Myst/Directives/DirectiveBlock.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Elastic.Markdown/Myst/Directives/DirectiveBlock.cs b/src/Elastic.Markdown/Myst/Directives/DirectiveBlock.cs index 23c6e52..ba31155 100644 --- a/src/Elastic.Markdown/Myst/Directives/DirectiveBlock.cs +++ b/src/Elastic.Markdown/Myst/Directives/DirectiveBlock.cs @@ -73,7 +73,7 @@ protected bool PropBool(params string[] keys) { var value = Prop(keys); if (string.IsNullOrEmpty(value)) - return Properties.ContainsKey(key); + return keys.Any(k => Properties.ContainsKey(k)); return bool.TryParse(value, out var result) && result; }