Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

CustomContainerBlock

OfficeIMO.Markdown

Namespace
OfficeIMO.Markdown
Assembly
OfficeIMO.Markdown
Source revision
90fbca630045 with working tree changes
Implements
IMarkdownBlock IChildMarkdownBlockContainer ISyntaxChildrenMarkdownBlock IOwnedSyntaxChildrenMarkdownBlock ISyntaxMarkdownBlock ITightListItemHtmlMarkdownBlock
Modifiers
sealed

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

Inheritance

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? required
children System.Collections.Generic.IEnumerable<OfficeIMO.Markdown.IMarkdownBlock>? = null optional
openingFenceLength int = 3 optional

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.