Skip to the content.

< Back


MarkdownParagraph

Namespace: Markdown

Markdown paragraph.

public class MarkdownParagraph : MarkdownTextElement, IMarkdownBlockElement

Inheritance ObjectMarkdownTextElementMarkdownParagraph
Implements IMarkdownBlockElement
Attributes NullableContextAttribute, NullableAttribute

Properties

InlineElement

Gets or sets the markdown inline element.

protected MarkdownInlineElement InlineElement { get; set; }

Property Value

MarkdownInlineElement
The markdown inline element.

Text

Gets or sets the text.

public string Text { get; set; }

Property Value

String
The text or a string that represents the markdown inline element.

Constructors

MarkdownParagraph(String)

Initializes a new instance of the MarkdownParagraph class.

public MarkdownParagraph(string text)

Parameters

text String
The paragraph text.

MarkdownParagraph(MarkdownInlineElement)

Initializes a new instance of the MarkdownParagraph class.

public MarkdownParagraph(MarkdownInlineElement inlineElement)

Parameters

inlineElement MarkdownInlineElement
The paragraph text as markdown inline element.

Methods

ToString()

Returns a string that represents the current markdown paragraph. The paragraph text is trimed.

public string ToString()

Returns

String
A string that represents the current markdown paragraph.


< Back