CustomContainerBlock
OfficeIMO.Markdown
Markdig-style colon-fenced custom container block rendered as an HTML div.
Inheritance
- MarkdownObject
- MarkdownBlock
- CustomContainerBlock
Usage
Explore 1 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 1
Constructors
public CustomContainerBlock(string? info, IEnumerable<IMarkdownBlock>? children = null, int openingFenceLength = 3) #Creates a custom container block.
Parameters
- info string?
- children System.Collections.Generic.IEnumerable<OfficeIMO.Markdown.IMarkdownBlock>? = null
- openingFenceLength int = 3
Inherited Methods
public void Accept(MarkdownVisitor visitor) #Parameters
- visitor MarkdownVisitor
public IEnumerable<MarkdownObject> Ancestors() #Returns
IEnumerable<MarkdownObject>public IEnumerable<MarkdownObject> AncestorsAndSelf() #Returns
IEnumerable<MarkdownObject>public IEnumerable<TObject> DescendantObjectsOfType<TObject>() #Type Parameters
- TObject
Returns
IEnumerable<TObject>public IEnumerable<MarkdownObject> Descendants() #Returns
IEnumerable<MarkdownObject>Properties
public string Name { get; } #First token from the container info string, used as the rendered CSS class.
public string Info { get; } #Full source info string after the opening colon fence.
public int OpeningFenceLength { get; } #Number of colon characters in the opening fence.
public int ClosingFenceLength { get; internal set; } #Number of colon characters in the closing fence, when the source had one.
public IReadOnlyList<IMarkdownBlock> ChildBlocks { get; } #Parsed child blocks inside the container.
public MarkdownSourceSpan? OpeningFenceSourceSpan { get; internal set; } #Source span for the opening colon fence marker.
public MarkdownSourceSpan? InfoSourceSpan { get; internal set; } #Source span for the container info string.
public MarkdownSourceSpan? NameSourceSpan { get; internal set; } #Source span for the first info token used as the rendered CSS class.
public MarkdownSourceSpan? ClosingFenceSourceSpan { get; internal set; } #Source span for the closing colon fence marker, when present.
Inherited Properties
public MarkdownSourceSpan? SourceSpan { get; internal set; } #public IReadOnlyList<MarkdownObject> ChildObjects { get; } #