Skip to content

Commit ad4d342

Browse files
committed
carry trimming over to split
1 parent 0b2ebeb commit ad4d342

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Elastic.Markdown/Myst/InlineParsers/Substitution/SubstitutionParser.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ public override bool Match(InlineProcessor processor, ref StringSlice slice)
181181
var replacement = string.Empty;
182182
var components = key.Split('|');
183183
if (components.Length > 1)
184-
key = components[0].Trim();
184+
key = components[0].Trim(['{', '}']).Trim().ToLowerInvariant();
185185

186186
if (context.Substitutions.TryGetValue(key, out var value))
187187
{

0 commit comments

Comments
 (0)