IFencedBlock Interface

A common interface for fenced block (e.g: FencedCodeBlock or CustomContainer)

public interface IFencedBlock : IBlock, IMarkdownObject
Implements

Properties

NameDescription
ArgumentsGets or sets the arguments after the IFencedBlock.Info. May be null.
ClosingFencedCharCountGets or sets the fenced character count used to close this fenced code block.
FencedCharGets or sets the fenced character used to open and close this fenced code block.
InfoGets or sets the language parsed after the first line of the fenced code block. May be null.
InfoNewLineNewline of the line with the opening fenced chars. Trivia: only parsed when MarkdownPipeline.TrackTrivia is enabled, otherwise NewLine.None.
NewLineNewline after the last line, which is always the line containing the closing fence chars. "Inherited" from Block.NewLine. Trivia: only parsed when MarkdownPipeline.TrackTrivia is enabled, otherwise NewLine.None.
OpeningFencedCharCountGets or sets the fenced character count used to open this fenced code block.
TriviaAfterArgumentsGets or sets the trivia after the IFencedBlock.Arguments. Trivia: only parsed when MarkdownPipeline.TrackTrivia is enabled, otherwise StringSlice.Empty.
TriviaAfterFencedCharGets or sets the trivia after the IFencedBlock.FencedChar. Trivia: only parsed when MarkdownPipeline.TrackTrivia is enabled, otherwise StringSlice.Empty.
TriviaAfterInfoGets or sets the trivia after the IFencedBlock.Info. Trivia: only parsed when MarkdownPipeline.TrackTrivia is enabled, otherwise StringSlice.Empty.
TriviaBeforeClosingFenceTrivia before the closing fenced chars Trivia: only parsed when MarkdownPipeline.TrackTrivia is enabled, otherwise StringSlice.Empty.
UnescapedArgumentsNon-escaped IFencedBlock.Arguments exactly as in source markdown. Trivia: only parsed when MarkdownPipeline.TrackTrivia is enabled, otherwise StringSlice.Empty.
UnescapedInfoNon-escaped IFencedBlock.Info exactly as in source markdown. Trivia: only parsed when MarkdownPipeline.TrackTrivia is enabled, otherwise StringSlice.Empty.

Arguments

Gets or sets the arguments after the IFencedBlock.Info. May be null.

string? Arguments { get; set; }

Property value

string?

ClosingFencedCharCount

Gets or sets the fenced character count used to close this fenced code block.

int ClosingFencedCharCount { get; set; }

Property value

int

FencedChar

Gets or sets the fenced character used to open and close this fenced code block.

char FencedChar { get; set; }

Property value

char

Info

Gets or sets the language parsed after the first line of the fenced code block. May be null.

string? Info { get; set; }

Property value

string?

InfoNewLine

Newline of the line with the opening fenced chars. Trivia: only parsed when MarkdownPipeline.TrackTrivia is enabled, otherwise NewLine.None.

NewLine InfoNewLine { get; set; }

Property value

NewLine

NewLine

Newline after the last line, which is always the line containing the closing fence chars. "Inherited" from Block.NewLine. Trivia: only parsed when MarkdownPipeline.TrackTrivia is enabled, otherwise NewLine.None.

NewLine NewLine { get; set; }

Property value

NewLine

OpeningFencedCharCount

Gets or sets the fenced character count used to open this fenced code block.

int OpeningFencedCharCount { get; set; }

Property value

int

TriviaAfterArguments

Gets or sets the trivia after the IFencedBlock.Arguments. Trivia: only parsed when MarkdownPipeline.TrackTrivia is enabled, otherwise StringSlice.Empty.

StringSlice TriviaAfterArguments { get; set; }

Property value

StringSlice

TriviaAfterFencedChar

Gets or sets the trivia after the IFencedBlock.FencedChar. Trivia: only parsed when MarkdownPipeline.TrackTrivia is enabled, otherwise StringSlice.Empty.

StringSlice TriviaAfterFencedChar { get; set; }

Property value

StringSlice

TriviaAfterInfo

Gets or sets the trivia after the IFencedBlock.Info. Trivia: only parsed when MarkdownPipeline.TrackTrivia is enabled, otherwise StringSlice.Empty.

StringSlice TriviaAfterInfo { get; set; }

Property value

StringSlice

TriviaBeforeClosingFence

Trivia before the closing fenced chars Trivia: only parsed when MarkdownPipeline.TrackTrivia is enabled, otherwise StringSlice.Empty.

StringSlice TriviaBeforeClosingFence { get; set; }

Property value

StringSlice

UnescapedArguments

Non-escaped IFencedBlock.Arguments exactly as in source markdown. Trivia: only parsed when MarkdownPipeline.TrackTrivia is enabled, otherwise StringSlice.Empty.

StringSlice UnescapedArguments { get; set; }

Property value

StringSlice

UnescapedInfo

Non-escaped IFencedBlock.Info exactly as in source markdown. Trivia: only parsed when MarkdownPipeline.TrackTrivia is enabled, otherwise StringSlice.Empty.

StringSlice UnescapedInfo { get; set; }

Property value

StringSlice