API Reference
MarkdownBlockSyntaxBuilderContext
Helper context passed to ISyntaxMarkdownBlockWithContext implementations when they build custom syntax-tree nodes.
Inheritance
- Object
- MarkdownBlockSyntaxBuilderContext
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Accepted by parameters
Methods
public MarkdownSyntaxNode BuildBlock(IMarkdownBlock block, Nullable<MarkdownSourceSpan> span = null) #MarkdownSyntaxNodeBuilds a syntax node for a child block using the core reader's standard mapping rules.
Parameters
- block OfficeIMO.Markdown.IMarkdownBlock
- span System.Nullable{OfficeIMO.Markdown.MarkdownSourceSpan} = null
public IReadOnlyList<MarkdownSyntaxNode> BuildChildSyntaxNodes(IEnumerable<IMarkdownBlock> children) #IReadOnlyList<MarkdownSyntaxNode>Builds child syntax nodes for a sequence of child blocks.
Parameters
- children System.Collections.Generic.IEnumerable{OfficeIMO.Markdown.IMarkdownBlock}
public MarkdownSyntaxNode BuildInlineContainerNode(MarkdownSyntaxKind kind, InlineSequence inlines, Nullable<MarkdownSourceSpan> span = null, String literal = null) #MarkdownSyntaxNodeBuilds a syntax node for inline content wrapped in a specific syntax kind.
Parameters
- kind OfficeIMO.Markdown.MarkdownSyntaxKind
- inlines OfficeIMO.Markdown.InlineSequence
- span System.Nullable{OfficeIMO.Markdown.MarkdownSourceSpan} = null
- literal System.String = null
public MarkdownSyntaxNode BuildInlineContainerNode(MarkdownSyntaxKind kind, InlineSequence inlines, Nullable<MarkdownSourceSpan> span, String literal, Object associatedObject) #MarkdownSyntaxNodeBuilds a syntax node for inline content with an explicit associated object. Use this when a wrapper syntax node represents a semantic owner other than the inline sequence itself.
Parameters
- kind OfficeIMO.Markdown.MarkdownSyntaxKind
- inlines OfficeIMO.Markdown.InlineSequence
- span System.Nullable{OfficeIMO.Markdown.MarkdownSourceSpan}
- literal System.String
- associatedObject System.Object
public IReadOnlyList<MarkdownSyntaxNode> BuildOwnedChildSyntaxNodes(IChildMarkdownBlockContainer container) #IReadOnlyList<MarkdownSyntaxNode>Builds child syntax nodes for a child-block container using the same owned-syntax projection rules as the core reader, falling back to the container's public child blocks when no parsed syntax is available.
Parameters
- container OfficeIMO.Markdown.IChildMarkdownBlockContainer
public Nullable<MarkdownSourceSpan> GetAggregateSpan(IReadOnlyList<MarkdownSyntaxNode> nodes) #Nullable<MarkdownSourceSpan>Computes an aggregate source span covering the supplied child nodes when possible.
Parameters
- nodes System.Collections.Generic.IReadOnlyList{OfficeIMO.Markdown.MarkdownSyntaxNode}
public String NormalizeLiteralLineEndings(String value) #StringNormalizes line endings for syntax-node literals to the reader's canonical newline form.
Parameters
- value System.String
Inherited Methods
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object