CustomContainer Class

A block custom container.

public class CustomContainer : ContainerBlock, IBlock, IFencedBlock, IMarkdownObject
Inheritance
ContainerBlock CustomContainer
Implements

Constructors

NameDescription
CustomContainer(BlockParser)Initializes a new instance of the CustomContainer class.

CustomContainer(BlockParser)

CustomContainer.cs

Initializes a new instance of the CustomContainer class.

public CustomContainer(BlockParser parser)

Parameters

parser BlockParser
The parser used to create this block.

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.
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.

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

public string? Arguments { get; set; }

Property value

string?

ClosingFencedCharCount

CustomContainer.cs

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

public int ClosingFencedCharCount { get; set; }

Property value

int

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

public char FencedChar { get; set; }

Property value

char

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

public string? Info { get; set; }

Property value

string?

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

public NewLine InfoNewLine { get; set; }

Property value

NewLine

OpeningFencedCharCount

CustomContainer.cs

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

public int OpeningFencedCharCount { get; set; }

Property value

int

TriviaAfterArguments

CustomContainer.cs

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

public StringSlice TriviaAfterArguments { get; set; }

Property value

StringSlice

TriviaAfterFencedChar

CustomContainer.cs

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

public StringSlice TriviaAfterFencedChar { get; set; }

Property value

StringSlice

TriviaAfterInfo

CustomContainer.cs

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

public StringSlice TriviaAfterInfo { get; set; }

Property value

StringSlice

TriviaBeforeClosingFence

CustomContainer.cs

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

public StringSlice TriviaBeforeClosingFence { get; set; }

Property value

StringSlice

UnescapedArguments

CustomContainer.cs

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

public StringSlice UnescapedArguments { get; set; }

Property value

StringSlice

UnescapedInfo

CustomContainer.cs

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

public StringSlice UnescapedInfo { get; set; }

Property value

StringSlice