diff --git a/src/MarkdownSnippets/Processing/SnippetKeyReader.cs b/src/MarkdownSnippets/Processing/SnippetKeyReader.cs index 3dfa8efb..efe88f9c 100644 --- a/src/MarkdownSnippets/Processing/SnippetKeyReader.cs +++ b/src/MarkdownSnippets/Processing/SnippetKeyReader.cs @@ -21,10 +21,11 @@ public static bool TryExtractKeyFromLine(Line line, [NotNullWhen(true)] out stri } key = key.Trim(); - if (KeyValidator.IsInValidKey(key)) - { - throw new MarkdownProcessingException($@"Invalid syntax for the snippet '{key}': Cannot contain whitespace or start/end with symbols.", line.Path, line.LineNumber); - } + //TODO: better validation + //if (KeyValidator.IsInValidKey(key)) + //{ + // throw new MarkdownProcessingException($@"Invalid syntax for the snippet '{key}': Cannot contain whitespace or start/end with symbols.", line.Path, line.LineNumber); + //} return true; }