MarkdownExtensionBlockSyntax Class

A block of a MarkdownFencedBlockExtension or of a MarkdownParagraphExtension: its markers, and its lines, its blocks, or its text and inlines.

public sealed class MarkdownExtensionBlockSyntax : MarkdownBlockSyntax

Remarks

MarkdownHtmlRenderer writes the lines escaped in a <pre><code> element, the blocks, or the text and the inlines in a <p> element, without the markers and the info. A MarkdownHtmlNodeRenderer writes other HTML.

Inheritance
MarkdownBlockSyntax MarkdownExtensionBlockSyntax

Properties

NameDescription
BlocksGets the blocks between the fences of a block of MarkdownFencedBlockContent.Blocks.
ContentGets the text of the lines between the fences, each line ending with \n.
InfoGets the text after the opening fence, without the whitespace around it, or an empty string.
InlinesGets the text and the inlines of the block of a paragraph, or the info of a fenced block that reads it as inlines: the children that are not markers, info, lines or blocks.
IsFencedGets a value indicating whether the block is a block of a MarkdownFencedBlockExtension.
LinesGets the lines between the fences of a block of MarkdownFencedBlockContent.RawLines, with their line endings.
MarkersGets the fences of a fenced block, or the markers of the block of a paragraph, in the order of the text.
NameGets the name of the extension that read the block, which the first token of the block has.
TextsGets the text tokens of the block of a paragraph, in the order of the text.

Gets the blocks between the fences of a block of MarkdownFencedBlockContent.Blocks.

public ImmutableArray<MarkdownBlockSyntax> Blocks { get; }

Gets the text of the lines between the fences, each line ending with \n.

public string Content { get; }

Property value

string

Gets the text after the opening fence, without the whitespace around it, or an empty string.

public string Info { get; }

Property value

string

Gets the text and the inlines of the block of a paragraph, or the info of a fenced block that reads it as inlines: the children that are not markers, info, lines or blocks.

public IEnumerable<SyntaxNodeOrToken> Inlines { get; }

Gets a value indicating whether the block is a block of a MarkdownFencedBlockExtension.

public bool IsFenced { get; }

Property value

bool

Gets the lines between the fences of a block of MarkdownFencedBlockContent.RawLines, with their line endings.

public ImmutableArray<SyntaxToken> Lines { get; }

Gets the fences of a fenced block, or the markers of the block of a paragraph, in the order of the text.

public ImmutableArray<SyntaxToken> Markers { get; }

Gets the name of the extension that read the block, which the first token of the block has.

public string Name { get; }

Property value

string

Gets the text tokens of the block of a paragraph, in the order of the text.

public ImmutableArray<SyntaxToken> Texts { get; }

Methods

NameDescription
Accept(MarkdownSyntaxVisitor)
Accept<TResult>(MarkdownSyntaxVisitor<TResult>)
GetPlainText()

Accept overloads

Accept(MarkdownSyntaxVisitor)

MarkdownExtensionBlockSyntax.cs
public override void Accept(MarkdownSyntaxVisitor visitor)
Parameters
visitor MarkdownSyntaxVisitor

No documentation is available.

Accept<TResult>(MarkdownSyntaxVisitor<TResult>)

MarkdownExtensionBlockSyntax.cs
public override TResult? Accept<TResult>(MarkdownSyntaxVisitor<TResult> visitor)
Type parameters
TResult
Parameters
visitor MarkdownSyntaxVisitor<TResult>
Returns

TResult?

No documentation is available.

public override string GetPlainText()

Returns

string

No documentation is available.