CalloutBlock
OfficeIMO.Markdown
Docs/Markdown-style callout (admonition) block. Renders using "> [!KIND] Title" followed by indented content lines.
Inheritance
- MarkdownObject
- MarkdownBlock
- CalloutBlock
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
- Property MarkdownNativeCalloutBlock.Callout
Constructors
public CalloutBlock(string kind, string title, string body) #Creates a callout with the specified kind, title and body.
Parameters
- kind string
- title string
- body string
public CalloutBlock(string kind, string title, IEnumerable<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 string
- title string
- children System.Collections.Generic.IEnumerable<OfficeIMO.Markdown.IMarkdownBlock>
public CalloutBlock(string kind, InlineSequence titleInlines, IEnumerable<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 string
- titleInlines OfficeIMO.Markdown.InlineSequence
- children System.Collections.Generic.IEnumerable<OfficeIMO.Markdown.IMarkdownBlock>
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 MarkdownSourceSpan? OpeningMarkerSourceSpan { get; internal set; } #Source span for the opening callout marker ([!) when parsed from markdown.
public MarkdownSourceSpan? KindSourceSpan { get; internal set; } #Source span for the callout kind token when parsed from markdown.
public MarkdownSourceSpan? ClosingMarkerSourceSpan { get; internal set; } #Source span for the closing callout marker (]) when parsed from markdown.
public MarkdownSourceSpan? TitleSourceSpan { get; internal set; } #Source span for the explicit callout title when parsed from markdown.
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 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.
Inherited Properties
public MarkdownSourceSpan? SourceSpan { get; internal set; } #public IReadOnlyList<MarkdownObject> ChildObjects { get; } #