OfficeIMO

API Reference

Class

MarkdownParseResult

Namespace OfficeIMO.Markdown
Assembly OfficeIMO.Markdown
Modifiers sealed

Result of parsing markdown into both the object model and a syntax tree.

Inheritance

  • Object
  • MarkdownParseResult

Methods

public MarkdownSyntaxNode FindDeepestFinalNodeAtLine(Int32 lineNumber) #
Returns: MarkdownSyntaxNode

Finds the deepest syntax node in the final document tree whose source span contains the given 1-based line number.

Parameters

lineNumber System.Int32 requiredposition: 0
public MarkdownSyntaxNode FindDeepestFinalNodeAtPosition(Int32 lineNumber, Int32 columnNumber) #
Returns: MarkdownSyntaxNode

Finds the deepest syntax node in the final document tree whose source span contains the given 1-based line and column.

Parameters

lineNumber System.Int32 requiredposition: 0
columnNumber System.Int32 requiredposition: 1
public MarkdownSyntaxNode FindDeepestFinalNodeContainingSpan(MarkdownSourceSpan span) #
Returns: MarkdownSyntaxNode

Finds the deepest syntax node in the final document tree whose source span fully contains the given span.

Parameters

span OfficeIMO.Markdown.MarkdownSourceSpan requiredposition: 0
public MarkdownSyntaxNode FindDeepestFinalNodeOverlappingSpan(MarkdownSourceSpan span) #
Returns: MarkdownSyntaxNode

Finds the deepest syntax node in the final document tree whose source span overlaps the given span.

Parameters

span OfficeIMO.Markdown.MarkdownSourceSpan requiredposition: 0
public MarkdownSyntaxNode FindDeepestNodeAtLine(Int32 lineNumber) #
Returns: MarkdownSyntaxNode

Finds the deepest syntax node whose source span contains the given 1-based line number.

Parameters

lineNumber System.Int32 requiredposition: 0
public MarkdownSyntaxNode FindDeepestNodeAtPosition(Int32 lineNumber, Int32 columnNumber) #
Returns: MarkdownSyntaxNode

Finds the deepest syntax node whose source span contains the given 1-based line and column.

Parameters

lineNumber System.Int32 requiredposition: 0
columnNumber System.Int32 requiredposition: 1
public MarkdownSyntaxNode FindDeepestNodeContainingSpan(MarkdownSourceSpan span) #
Returns: MarkdownSyntaxNode

Finds the deepest syntax node whose source span fully contains the given span.

Parameters

span OfficeIMO.Markdown.MarkdownSourceSpan requiredposition: 0
public MarkdownSyntaxNode FindDeepestNodeOverlappingSpan(MarkdownSourceSpan span) #
Returns: MarkdownSyntaxNode

Finds the deepest syntax node whose source span overlaps the given span.

Parameters

span OfficeIMO.Markdown.MarkdownSourceSpan requiredposition: 0
public IReadOnlyList<MarkdownSyntaxNode> FindFinalNodePathAtLine(Int32 lineNumber) #
Returns: IReadOnlyList<MarkdownSyntaxNode>

Finds the syntax node path from the final document root to the deepest node containing the given 1-based line number.

Parameters

lineNumber System.Int32 requiredposition: 0
public IReadOnlyList<MarkdownSyntaxNode> FindFinalNodePathAtPosition(Int32 lineNumber, Int32 columnNumber) #
Returns: IReadOnlyList<MarkdownSyntaxNode>

Finds the syntax node path from the final document root to the deepest node containing the given 1-based line and column.

Parameters

lineNumber System.Int32 requiredposition: 0
columnNumber System.Int32 requiredposition: 1
public IReadOnlyList<MarkdownSyntaxNode> FindFinalNodePathContainingSpan(MarkdownSourceSpan span) #
Returns: IReadOnlyList<MarkdownSyntaxNode>

Finds the syntax node path from the final document root to the deepest node whose source span fully contains the given span.

Parameters

span OfficeIMO.Markdown.MarkdownSourceSpan requiredposition: 0
public IReadOnlyList<MarkdownSyntaxNode> FindFinalNodePathOverlappingSpan(MarkdownSourceSpan span) #
Returns: IReadOnlyList<MarkdownSyntaxNode>

Finds the syntax node path from the final document root to the deepest node whose source span overlaps the given span.

Parameters

span OfficeIMO.Markdown.MarkdownSourceSpan requiredposition: 0
public MarkdownSyntaxNode FindNearestBlockAtLine(Int32 lineNumber) #
Returns: MarkdownSyntaxNode

Finds the nearest block-like syntax node whose source span contains the given 1-based line number.

Parameters

lineNumber System.Int32 requiredposition: 0
public MarkdownSyntaxNode FindNearestBlockAtPosition(Int32 lineNumber, Int32 columnNumber) #
Returns: MarkdownSyntaxNode

Finds the nearest block-like syntax node whose source span contains the given 1-based line and column.

Parameters

lineNumber System.Int32 requiredposition: 0
columnNumber System.Int32 requiredposition: 1
public MarkdownSyntaxNode FindNearestBlockContainingSpan(MarkdownSourceSpan span) #
Returns: MarkdownSyntaxNode

Finds the nearest block-like syntax node whose source span fully contains the given span.

Parameters

span OfficeIMO.Markdown.MarkdownSourceSpan requiredposition: 0
public MarkdownSyntaxNode FindNearestBlockOverlappingSpan(MarkdownSourceSpan span) #
Returns: MarkdownSyntaxNode

Finds the nearest block-like syntax node whose source span overlaps the given span.

Parameters

span OfficeIMO.Markdown.MarkdownSourceSpan requiredposition: 0
public MarkdownSyntaxNode FindNearestFinalBlockAtLine(Int32 lineNumber) #
Returns: MarkdownSyntaxNode

Finds the nearest block-like syntax node in the final document tree whose source span contains the given 1-based line number.

Parameters

lineNumber System.Int32 requiredposition: 0
public MarkdownSyntaxNode FindNearestFinalBlockAtPosition(Int32 lineNumber, Int32 columnNumber) #
Returns: MarkdownSyntaxNode

Finds the nearest block-like syntax node in the final document tree whose source span contains the given 1-based line and column.

Parameters

lineNumber System.Int32 requiredposition: 0
columnNumber System.Int32 requiredposition: 1
public MarkdownSyntaxNode FindNearestFinalBlockContainingSpan(MarkdownSourceSpan span) #
Returns: MarkdownSyntaxNode

Finds the nearest block-like syntax node in the final document tree whose source span fully contains the given span.

Parameters

span OfficeIMO.Markdown.MarkdownSourceSpan requiredposition: 0
public MarkdownSyntaxNode FindNearestFinalBlockOverlappingSpan(MarkdownSourceSpan span) #
Returns: MarkdownSyntaxNode

Finds the nearest block-like syntax node in the final document tree whose source span overlaps the given span.

Parameters

span OfficeIMO.Markdown.MarkdownSourceSpan requiredposition: 0
public IReadOnlyList<MarkdownSyntaxNode> FindNodePathAtLine(Int32 lineNumber) #
Returns: IReadOnlyList<MarkdownSyntaxNode>

Finds the syntax node path from the document root to the deepest node containing the given 1-based line number.

Parameters

lineNumber System.Int32 requiredposition: 0
public IReadOnlyList<MarkdownSyntaxNode> FindNodePathAtPosition(Int32 lineNumber, Int32 columnNumber) #
Returns: IReadOnlyList<MarkdownSyntaxNode>

Finds the syntax node path from the document root to the deepest node containing the given 1-based line and column.

Parameters

lineNumber System.Int32 requiredposition: 0
columnNumber System.Int32 requiredposition: 1
public IReadOnlyList<MarkdownSyntaxNode> FindNodePathContainingSpan(MarkdownSourceSpan span) #
Returns: IReadOnlyList<MarkdownSyntaxNode>

Finds the syntax node path from the document root to the deepest node whose source span fully contains the given span.

Parameters

span OfficeIMO.Markdown.MarkdownSourceSpan requiredposition: 0
public IReadOnlyList<MarkdownSyntaxNode> FindNodePathOverlappingSpan(MarkdownSourceSpan span) #
Returns: IReadOnlyList<MarkdownSyntaxNode>

Finds the syntax node path from the document root to the deepest node whose source span overlaps the given span.

Parameters

span OfficeIMO.Markdown.MarkdownSourceSpan requiredposition: 0

Properties

public MarkdownDoc Document { get; } #

The parsed markdown object model.

public MarkdownSyntaxNode SyntaxTree { get; } #

The original syntax tree produced before document transforms were applied. When a transform replaces the document instance, this tree intentionally drops semantic AssociatedObject bindings to avoid stale object references. Use FinalSyntaxTree for syntax-to-model navigation against Document.

public MarkdownSyntaxNode FinalSyntaxTree { get; } #

The syntax tree corresponding to the final returned Document.

public IReadOnlyList<MarkdownDocumentTransformDiagnostic> TransformDiagnostics { get; } #

Optional document-transform diagnostics captured during parsing.