SemanticFencedBlock
OfficeIMO.Markdown
First-class AST node for fenced blocks whose language maps to host-defined semantics such as diagrams, charts, data views, or other non-code contracts.
Inheritance
- MarkdownObject
- MarkdownBlock
- SemanticFencedBlock
Usage
Explore 7 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 3
Accepted by parameters 4
Constructors
public SemanticFencedBlock(string semanticKind, string language, string content, string? caption = null) #Create a semantic fenced block.
Parameters
- semanticKind string
- language string
- content string
- caption string? = null
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 string SemanticKind { get; } #Host-defined semantic contract for this block (for example chart or mermaid).
public MarkdownCodeFenceInfo FenceInfo { get; } #Structured fenced-code info metadata.
public string? Caption { get; set; } #Optional caption shown under the block.
public MarkdownSourceSpan? OpeningFenceSourceSpan { get; internal set; } #Source span for the opening fence token when parsed from a fenced source block.
public MarkdownSourceSpan? InfoStringSourceSpan { get; internal set; } #Source span for the fenced-block info string when parsed from a fenced source block.
public MarkdownSourceSpan? ContentSourceSpan { get; internal set; } #Source span for the fenced payload when source-backed.
public MarkdownSourceSpan? ClosingFenceSourceSpan { get; internal set; } #Source span for the closing fence token when parsed from a closed fenced source block.
Inherited Properties
public MarkdownSourceSpan? SourceSpan { get; internal set; } #public IReadOnlyList<MarkdownObject> ChildObjects { get; } #