From d0311b4cea6d1db77ae4554a6883a6942b7b4251 Mon Sep 17 00:00:00 2001 From: Sergey Nozhenko Date: Sun, 15 Dec 2024 19:49:56 +0300 Subject: [PATCH] Set delimiter in the CustomContainer instance. --- .../Extensions/CustomContainers/CustomContainerExtension.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Markdig/Extensions/CustomContainers/CustomContainerExtension.cs b/src/Markdig/Extensions/CustomContainers/CustomContainerExtension.cs index d07d4a4cb..1a38013e8 100644 --- a/src/Markdig/Extensions/CustomContainers/CustomContainerExtension.cs +++ b/src/Markdig/Extensions/CustomContainers/CustomContainerExtension.cs @@ -30,7 +30,11 @@ public void Setup(MarkdownPipelineBuilder pipeline) { if (delimiterCount == 2 && emphasisChar == ':') { - return new CustomContainerInline(); + return new CustomContainerInline + { + DelimiterChar = ':', + DelimiterCount = 2 + }; } return null; });