internal DomItem ParseRecursive(DomItem parent) { DomItem domItem = _matchRules.GetEarliestMatch(parent.Value, parent, recursiveParser: this)?.DoTransform(); if (domItem != null) { parent.AddChild(domItem); ParseRecursive(parent); } return(parent); }
public Paragraph(string value, DomItem parent, MarkdownParser recursiveParser) : base(value, parent, recursiveParser) { }
public MarkdownMatch(string original, Match match, Func <MarkdownMatch, DomItem> transform, DomItem parent, MarkdownParser recursiveParser) { this.Original = original; this.MatchValue = match.Value; this.Groups = match.Groups; this._transform = transform; this.Parent = parent; this.RecursiveParser = recursiveParser; }
public MarkdownListItem(string value, DomItem parent, MarkdownParser recursiveParser) : base(value, parent, recursiveParser) { this.FullMatchValue = value; }