API Reference
Class
MarkdownBlockSyntaxBuilderContext
Helper context passed to ISyntaxMarkdownBlockWithContext implementations when they build custom syntax-tree nodes.
Inheritance
- Object
- MarkdownBlockSyntaxBuilderContext
Methods
public MarkdownSyntaxNode BuildBlock(IMarkdownBlock block, Nullable<MarkdownSourceSpan> span = null) #Returns:
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) #Returns:
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) #Returns:
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 Nullable<MarkdownSourceSpan> GetAggregateSpan(IReadOnlyList<MarkdownSyntaxNode> nodes) #Returns:
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) #Returns:
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) #Returns:
BooleanInherited from Object
Parameters
- obj Object