From 26b022f7ba3190fa3bdc38a3b5604581b5452b4c Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Wed, 9 Aug 2023 21:09:50 +0100 Subject: [PATCH] refactor: set OpeningChars for parser --- OliverBooth/Markdown/TemplateInlineParser.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/OliverBooth/Markdown/TemplateInlineParser.cs b/OliverBooth/Markdown/TemplateInlineParser.cs index 91964b6..40ca4f1 100644 --- a/OliverBooth/Markdown/TemplateInlineParser.cs +++ b/OliverBooth/Markdown/TemplateInlineParser.cs @@ -12,6 +12,14 @@ public sealed class TemplateInlineParser : InlineParser private static readonly IReadOnlyDictionary EmptyParams = new Dictionary().AsReadOnly(); + /// + /// Initializes a new instance of the class. + /// + public TemplateInlineParser() + { + OpeningCharacters = new[] { '{' }; + } + /// public override bool Match(InlineProcessor processor, ref StringSlice slice) {