public void Validate(MarkdownTagInlineToken token) { var m = OpeningTag.Match(token.SourceInfo.Markdown); bool isOpeningTag = true; if (m.Length == 0) { m = ClosingTag.Match(token.SourceInfo.Markdown); if (m.Length == 0) { return; } isOpeningTag = false; } ValidateCore(token, m, isOpeningTag); }
public IMarkdownToken Validate(MarkdownEngine engine, MarkdownTagInlineToken token) { var m = OpeningTag.Match(token.Content); bool isOpeningTag = true; if (m.Length == 0) { m = ClosingTag.Match(token.Content); if (m.Length == 0) { return(null); } isOpeningTag = false; } return(ValidateCore(token, m, isOpeningTag)); }