API Reference

Class

CustomContainerBlock

Namespace OfficeIMO.Markdown
Assembly OfficeIMO.Markdown
Implements
IMarkdownBlock IChildMarkdownBlockContainer ISyntaxChildrenMarkdownBlock IOwnedSyntaxChildrenMarkdownBlock ISyntaxMarkdownBlock ITightListItemHtmlMarkdownBlock
Modifiers sealed

Markdig-style colon-fenced custom container block rendered as an HTML div.

Inheritance

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by

Constructors

public CustomContainerBlock(String info, IEnumerable<IMarkdownBlock> children = null, Int32 openingFenceLength = 3) #

Creates a custom container block.

Parameters

info System.String requiredposition: 0
children System.Collections.Generic.IEnumerable{OfficeIMO.Markdown.IMarkdownBlock} = null optionalposition: 1
openingFenceLength System.Int32 = 3 optionalposition: 2

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 Int32 OpeningFenceLength { get; } #

Number of colon characters in the opening fence.

public Int32 ClosingFenceLength { get; set; } #

Number of colon characters in the closing fence, when the source had one.

public virtual IReadOnlyList<IMarkdownBlock> ChildBlocks { get; } #

Parsed child blocks inside the container.

SyntaxChildren #

Nested syntax nodes captured during parsing, when available.

public Nullable<MarkdownSourceSpan> OpeningFenceSourceSpan { get; set; } #

Source span for the opening colon fence marker.

public Nullable<MarkdownSourceSpan> InfoSourceSpan { get; set; } #

Source span for the container info string.

public Nullable<MarkdownSourceSpan> NameSourceSpan { get; set; } #

Source span for the first info token used as the rendered CSS class.

public Nullable<MarkdownSourceSpan> ClosingFenceSourceSpan { get; set; } #

Source span for the closing colon fence marker, when present.