/// <summary> /// Appends the specified markdown inline element to this instance. /// </summary> /// <param name="inlineElement">The markdown inline element to append.</param> /// <returns>The markdown text.</returns> public MarkdownText Append(MarkdownInlineElement inlineElement) { this.fragments.Add(inlineElement); return(this); }
/// <summary> /// Initializes a new instance of the <see cref="MarkdownText" /> class. /// </summary> /// <param name="inlineElement">The text as markdown inline element.</param> public MarkdownText(MarkdownInlineElement inlineElement) : base(inlineElement) { this.fragments.Add(inlineElement); }
/// <summary> /// Initializes a new instance of the <see cref="MarkdownCode" /> class. /// </summary> /// <param name="language">The code language.</param> /// <param name="inlineElement">The code as markdown inline element.</param> public MarkdownCode(string language, MarkdownInlineElement inlineElement) : base(inlineElement) { this.Language = language; }
/// <summary> /// Initializes a new instance of <see cref="MarkdownBlockquote" /> class. /// </summary> /// <param name="inlineElement">The blockquote text as markdown inline element.</param> public MarkdownBlockquote(MarkdownInlineElement inlineElement) : base(inlineElement) { }
/// <summary> /// Initializes a new instance of the <see cref="MarkdownParagraph" /> class. /// </summary> /// <param name="inlineElement">The paragraph text as markdown inline element.</param> public MarkdownParagraph(MarkdownInlineElement inlineElement) : base(inlineElement) { }