Skip to the content.

< Back


MarkdownBlockquote

Namespace: Markdown

Markdown blockquote. Can contain any block elements (paragraphs, lists, code blocks, other blockquotes).

public class MarkdownBlockquote : IMarkdownBlockElement

Inheritance ObjectMarkdownBlockquote
Implements IMarkdownBlockElement
Attributes NullableContextAttribute, NullableAttribute

Properties

BlockElements

Gets the block elements contained in the blockquote.

public List<IMarkdownBlockElement> BlockElements { get; }

Property Value

List<IMarkdownBlockElement>
The block elements.

Constructors

MarkdownBlockquote(IMarkdownBlockElement[])

Initializes a new instance of the MarkdownBlockquote class.

public MarkdownBlockquote(IMarkdownBlockElement[] elements)

Parameters

elements IMarkdownBlockElement[]
The block elements.

MarkdownBlockquote(IEnumerable<IMarkdownBlockElement>)

Initializes a new instance of the MarkdownBlockquote class.

public MarkdownBlockquote(IEnumerable<IMarkdownBlockElement> elements)

Parameters

elements IEnumerable<IMarkdownBlockElement>
The block elements.

MarkdownBlockquote(String)

Initializes a new instance of the MarkdownBlockquote class with a text paragraph.

public MarkdownBlockquote(string text)

Parameters

text String
The blockquote text.

MarkdownBlockquote(MarkdownInlineElement)

Initializes a new instance of the MarkdownBlockquote class with an inline element paragraph.

public MarkdownBlockquote(MarkdownInlineElement inlineElement)

Parameters

inlineElement MarkdownInlineElement
The blockquote text as markdown inline element.

Methods

ToString()

Returns a string that represents the current markdown blockquote. Each line of the contained block elements is prefixed with “> “.

public string ToString()

Returns

String
A string that represents the current markdown blockquote.


< Back