internal static IMarkdownInLine ToMDLink(DotNetCommentQualifiedLinkedGroup commentGroup, DotNetMember parent = null) { string text = String.Join("", DotNetCommentGroupToMarkdownLine(commentGroup, parent).Elements.Select(x => x.ToMarkdownString(null)).ToArray()); IMarkdownInLine plainLink = ToMDLink(commentGroup.QualifiedLink, parent); if (plainLink is MarkdownInlineLink) { return(new MarkdownInlineLink(text, (plainLink as MarkdownInlineLink).Url)); } return(new MarkdownText(text)); }
/// <summary> /// Add an element to the end of the line. /// </summary> public void Add(IMarkdownInLine element) { elements.Add(element); }
/// <summary> /// Adds new MarkdownLine containing the <paramref name='element'/> to the end of the list. /// </summary> public void Add(IMarkdownInLine element) { elements.Add(new MarkdownLine(element)); }
/// <summary> /// Add an element to the beginning of the line. /// </summary> public void Prepend(IMarkdownInLine element) { elements.Insert(0, element); }