CustomContainer Class
A block custom container.
public class CustomContainer : ContainerBlock, IBlock, IFencedBlock, IMarkdownObjectSee also
- Inheritance
ContainerBlockCustomContainer- Implements
Constructors
| Name | Description |
|---|---|
| CustomContainer(BlockParser) | Initializes a new instance of the CustomContainer class. |
CustomContainer(BlockParser)
CustomContainer.csInitializes a new instance of the CustomContainer class.
public CustomContainer(BlockParser parser)Parameters
parserBlockParser- The parser used to create this block.
Properties
| Name | Description |
|---|---|
| Arguments | Gets or sets the arguments after the IFencedBlock.Info. May be null. |
| ClosingFencedCharCount | Gets or sets the fenced character count used to close this fenced code block. |
| FencedChar | Gets or sets the fenced character used to open and close this fenced code block. |
| Info | Gets or sets the language parsed after the first line of the fenced code block. May be null. |
| InfoNewLine | Newline of the line with the opening fenced chars. Trivia: only parsed when MarkdownPipeline.TrackTrivia is enabled, otherwise NewLine.None. |
| OpeningFencedCharCount | Gets or sets the fenced character count used to open this fenced code block. |
| TriviaAfterArguments | Gets or sets the trivia after the IFencedBlock.Arguments. Trivia: only parsed when MarkdownPipeline.TrackTrivia is enabled, otherwise StringSlice.Empty. |
| TriviaAfterFencedChar | Gets or sets the trivia after the IFencedBlock.FencedChar. Trivia: only parsed when MarkdownPipeline.TrackTrivia is enabled, otherwise StringSlice.Empty. |
| TriviaAfterInfo | Gets or sets the trivia after the IFencedBlock.Info. Trivia: only parsed when MarkdownPipeline.TrackTrivia is enabled, otherwise StringSlice.Empty. |
| TriviaBeforeClosingFence | Trivia before the closing fenced chars Trivia: only parsed when MarkdownPipeline.TrackTrivia is enabled, otherwise StringSlice.Empty. |
| UnescapedArguments | Non-escaped IFencedBlock.Arguments exactly as in source markdown. Trivia: only parsed when MarkdownPipeline.TrackTrivia is enabled, otherwise StringSlice.Empty. |
| UnescapedInfo | Non-escaped IFencedBlock.Info exactly as in source markdown. Trivia: only parsed when MarkdownPipeline.TrackTrivia is enabled, otherwise StringSlice.Empty. |
Arguments
CustomContainer.csGets or sets the arguments after the IFencedBlock.Info. May be null.
public string? Arguments { get; set; }Property value
ClosingFencedCharCount
CustomContainer.csFencedChar
CustomContainer.csInfoNewLine
CustomContainer.csNewline 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
OpeningFencedCharCount
CustomContainer.csTriviaAfterArguments
CustomContainer.csGets 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
TriviaAfterFencedChar
CustomContainer.csGets 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
TriviaAfterInfo
CustomContainer.csGets 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
TriviaBeforeClosingFence
CustomContainer.csTrivia before the closing fenced chars Trivia: only parsed when MarkdownPipeline.TrackTrivia is enabled, otherwise StringSlice.Empty.
public StringSlice TriviaBeforeClosingFence { get; set; }Property value
UnescapedArguments
CustomContainer.csNon-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
UnescapedInfo
CustomContainer.csNon-escaped IFencedBlock.Info exactly as in source markdown. Trivia: only parsed when MarkdownPipeline.TrackTrivia is enabled, otherwise StringSlice.Empty.
public StringSlice UnescapedInfo { get; set; }