private MdNode GetMdNode() { if (currentMdTag.GetInnerTags.Count != 0) { return(GetMdNodeWithInnerNodes()); } var offset = FindPositionTagEnd(); currentPosition = offset; if (offset == sourceString.Length) { var emptyTag = new EmptyTag(); return(new MdNode(GetSubstringWithoutMdTags(emptyTag.TagName), emptyTag)); } var previousTag = currentMdTag; UpdateCurrentTag(); var context = GetSubstringWithoutMdTags(previousTag.TagName); return(new MdNode(context, previousTag)); }
public void FindEmpty() { Match m = this.Config.tagregex.EmptyPairTest.Match(this.Html); string style = ""; if (m.Success) { style = m.Groups["style"].Value; Empty = new EmptyTag(style, m.Value, Deep, this.Config, this.Deep + this.TagList.Count); this.Html = this.Html.Replace(m.Value, Empty.GetContentPlaceholder(style)); } }
public override string CreateString(int minIndex = -1) { Initialize(); var lumaPart = new EmptyTag(); var chromaPart = new StringTag(Label); foreach (var tag in SubTags) { if (tag.ConnectedTo(m_ChromaTag)) { chromaPart.AddInputLabel(tag); } else { lumaPart.AddInputLabel(tag); } } lumaPart.Initialize(); chromaPart.Initialize(); var luma = lumaPart .CreateString(minIndex) .FlattenStatus() .PrependToStatus("Luma: "); var chroma = chromaPart .CreateString(minIndex) .FlattenStatus(); if (!chroma.StartsWith("Chroma: ")) { chroma = chroma.PrependToStatus(luma == "" ? "" : "Chroma: "); } return(chroma.AppendStatus(luma)); }
public TextureSourceFilter(ITextureOutput <TTexture> output) : base(output) { /* Don't connect to bottom label */ Tag = new EmptyTag(); }