API Reference
CustomContainerBlock
Markdig-style colon-fenced custom container block rendered as an HTML div.
Inheritance
- MarkdownBlock
- CustomContainerBlock
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
- children System.Collections.Generic.IEnumerable{OfficeIMO.Markdown.IMarkdownBlock} = null
- openingFenceLength System.Int32 = 3
Inherited Methods
public Void Accept(MarkdownVisitor visitor) #VoidParameters
- visitor MarkdownVisitor
public IEnumerable<MarkdownObject> Ancestors() #IEnumerable<MarkdownObject>public IEnumerable<MarkdownObject> AncestorsAndSelf() #IEnumerable<MarkdownObject>public IEnumerable<TObject> DescendantObjectsOfType<TObject>() #IEnumerable<TObject>Type Parameters
- TObject
public IEnumerable<MarkdownObject> Descendants() #IEnumerable<MarkdownObject>public override Boolean Equals(Object obj) #BooleanParameters
- obj Object
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.
Inherited Properties
public MarkdownObject Parent { get; } #public MarkdownDoc Document { get; } #public MarkdownObject Root { get; } #public Nullable<Int32> IndexInParent { get; } #public MarkdownObject PreviousSibling { get; } #public MarkdownObject NextSibling { get; } #public Nullable<MarkdownSourceSpan> SourceSpan { get; set; } #public MarkdownAttributeSet Attributes { get; } #public IReadOnlyList<MarkdownObject> ChildObjects { get; } #