API Reference
SemanticFencedBlock
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
- MarkdownBlock
- SemanticFencedBlock
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
Accepted by parameters
Constructors
public SemanticFencedBlock(String semanticKind, String language, String content, String caption = null) #Create a semantic fenced block.
Parameters
- semanticKind System.String
- language System.String
- content System.String
- caption System.String = null
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 SemanticKind { get; } #Host-defined semantic contract for this block (for example chart or mermaid).
public String Language { get; } #Original fence language / info string.
public String InfoString { get; } #Full original fence info string.
public MarkdownCodeFenceInfo FenceInfo { get; } #Structured fenced-code info metadata.
public String Content { get; } #Raw fenced payload.
public virtual String Caption { get; set; } #Optional caption shown under the block.
public Nullable<MarkdownSourceSpan> OpeningFenceSourceSpan { get; set; } #Source span for the opening fence token when parsed from a fenced source block.
public Nullable<MarkdownSourceSpan> InfoStringSourceSpan { get; set; } #Source span for the fenced-block info string when parsed from a fenced source block.
public Nullable<MarkdownSourceSpan> ContentSourceSpan { get; set; } #Source span for the fenced payload when source-backed.
public Nullable<MarkdownSourceSpan> ClosingFenceSourceSpan { get; set; } #Source span for the closing fence token when parsed from a closed fenced source block.
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; } #