Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public Paragraph(string value, DomItem parent, MarkdownParser recursiveParser)
     : base(value, parent, recursiveParser)
 {
 }
Exemplo n.º 3
0
 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;
 }
Exemplo n.º 4
0
 public MarkdownListItem(string value, DomItem parent, MarkdownParser recursiveParser)
     : base(value, parent, recursiveParser)
 {
     this.FullMatchValue = value;
 }