API Reference
CalloutBlock
Docs/Markdown-style callout (admonition) block. Renders using "> [!KIND] Title" followed by indented content lines.
Inheritance
- MarkdownBlock
- CalloutBlock
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
- Property MarkdownNativeCalloutBlock.Callout
Constructors
public CalloutBlock(String kind, InlineSequence titleInlines, IEnumerable<IMarkdownBlock> children) #Creates a callout with the specified kind, title and body.
Parameters
- kind System.String
- title System.String
- body System.String
CalloutBlock(System.String kind, System.String title, System.Collections.Generic.IEnumerable{OfficeIMO.Markdown.IMarkdownBlock} children) #Creates a callout with structured body blocks. Prefer this overload when the body contains lists, code blocks, tables, or other nested markdown structure.
Parameters
- kind System.String
- title System.String
- children System.Collections.Generic.IEnumerable{OfficeIMO.Markdown.IMarkdownBlock}
CalloutBlock(System.String kind, OfficeIMO.Markdown.InlineSequence titleInlines, System.Collections.Generic.IEnumerable{OfficeIMO.Markdown.IMarkdownBlock} children) #Creates a callout with structured title inlines and structured body blocks. This is the canonical semantic shape used by parsed callouts.
Parameters
- kind System.String
- titleInlines OfficeIMO.Markdown.InlineSequence
- children System.Collections.Generic.IEnumerable{OfficeIMO.Markdown.IMarkdownBlock}
Methods
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 Kind { get; } #Admonition kind, e.g., info, warning, success.
public Nullable<MarkdownSourceSpan> OpeningMarkerSourceSpan { get; set; } #Source span for the opening callout marker ([!) when parsed from markdown.
public Nullable<MarkdownSourceSpan> KindSourceSpan { get; set; } #Source span for the callout kind token when parsed from markdown.
public Nullable<MarkdownSourceSpan> ClosingMarkerSourceSpan { get; set; } #Source span for the closing callout marker (]) when parsed from markdown.
public Nullable<MarkdownSourceSpan> TitleSourceSpan { get; set; } #Source span for the explicit callout title when parsed from markdown.
public String Title { get; } #Callout title displayed inline with the marker.
public InlineSequence TitleInlines { get; } #Parsed inline title content when available.
public String Body { get; } #Callout body text (can include multiple lines). Structured callouts derive this from child blocks; legacy plain-text bodies preserve the original text.
public virtual IReadOnlyList<IMarkdownBlock> ChildBlocks { get; } #Parsed body blocks when the callout is created by the reader. This exposes callout content as owned child blocks for AST-style consumers.
SyntaxChildren #Optional parsed body blocks. When present (produced by MarkdownReader), HTML/Markdown rendering uses these blocks instead of the raw Body string.
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; } #