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 : MarkdownBlockSyntaxRemarks
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
MarkdownBlockSyntaxMarkdownExtensionBlockSyntax
Properties
| Name | Description |
|---|---|
| Blocks | Gets the blocks between the fences of a block of MarkdownFencedBlockContent.Blocks. |
| Content | Gets the text of the lines between the fences, each line ending with \n. |
| Info | Gets the text after the opening fence, without the whitespace around it, or an empty string. |
| Inlines | 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. |
| IsFenced | Gets a value indicating whether the block is a block of a MarkdownFencedBlockExtension. |
| Lines | Gets the lines between the fences of a block of MarkdownFencedBlockContent.RawLines, with their line endings. |
| Markers | Gets the fences of a fenced block, or the markers of the block of a paragraph, in the order of the text. |
| Name | Gets the name of the extension that read the block, which the first token of the block has. |
| Texts | Gets 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; }Property value
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; }Property value
IsFenced
MarkdownExtensionBlockSyntax.csGets a value indicating whether the block is a block of a MarkdownFencedBlockExtension.
public bool IsFenced { get; }Property value
Gets the lines between the fences of a block of MarkdownFencedBlockContent.RawLines, with their line endings.
public ImmutableArray<SyntaxToken> Lines { get; }Property value
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; }Property value
Gets the text tokens of the block of a paragraph, in the order of the text.
public ImmutableArray<SyntaxToken> Texts { get; }Property value
Methods
| Name | Description |
|---|---|
| Accept(MarkdownSyntaxVisitor) | |
| Accept<TResult>(MarkdownSyntaxVisitor<TResult>) | |
| GetPlainText() |
Accept overloads
Accept(MarkdownSyntaxVisitor)
MarkdownExtensionBlockSyntax.cspublic override void Accept(MarkdownSyntaxVisitor visitor)Parameters
visitorMarkdownSyntaxVisitor
No documentation is available.
Accept<TResult>(MarkdownSyntaxVisitor<TResult>)
MarkdownExtensionBlockSyntax.cspublic override TResult? Accept<TResult>(MarkdownSyntaxVisitor<TResult> visitor)No documentation is available.