# MarkdownRendererParseResult

Result of parsing markdown through the renderer-owned pipeline.

Class 

`OfficeIMO.MarkdownRenderer`

**Namespace**

`OfficeIMO.MarkdownRenderer`

**Assembly**

`OfficeIMO.MarkdownRenderer`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[MarkdownRendererParseResult.cs:63](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.MarkdownRenderer/MarkdownRendererParseResult.cs#L63)

**Modifiers**

sealed

Result of parsing markdown through the renderer-owned pipeline.

## Inheritance

- object
- MarkdownRendererParseResult

## Usage

Explore 1 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 1

- Method [MarkdownRenderer.ParseDocumentResult](/api/markdown-renderer/officeimo-markdownrenderer-markdownrenderer/#method-parsedocumentresult-string-officeimo-markdownrenderer-markdownrendereroptions)

Filter members 

Show inherited

## Methods

`public MarkdownSyntaxNode? FindDeepestFinalNodeAtLine(int lineNumber)` [#](#method-finddeepestfinalnodeatline-int32)

[MarkdownRendererParseResult.cs:99](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.MarkdownRenderer/MarkdownRendererParseResult.cs#L99)

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

Parameters

**lineNumber int required**

Returns

`MarkdownSyntaxNode?`

`public MarkdownSyntaxNode? FindDeepestFinalNodeAtPosition(int lineNumber, int columnNumber)` [#](#method-finddeepestfinalnodeatposition-int32-int32)

[MarkdownRendererParseResult.cs:102](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.MarkdownRenderer/MarkdownRendererParseResult.cs#L102)

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

Parameters

**lineNumber int required**

**columnNumber int required**

Returns

`MarkdownSyntaxNode?`

`public MarkdownSyntaxNode? FindDeepestFinalNodeContainingSpan(MarkdownSourceSpan span)` [#](#method-finddeepestfinalnodecontainingspan-officeimo-markdown-markdownsourcespan)

[MarkdownRendererParseResult.cs:117](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.MarkdownRenderer/MarkdownRendererParseResult.cs#L117)

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

Parameters

**span OfficeIMO.Markdown.MarkdownSourceSpan required**

Returns

`MarkdownSyntaxNode?`

`public MarkdownSyntaxNode? FindDeepestFinalNodeOverlappingSpan(MarkdownSourceSpan span)` [#](#method-finddeepestfinalnodeoverlappingspan-officeimo-markdown-markdownsourcespan)

[MarkdownRendererParseResult.cs:126](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.MarkdownRenderer/MarkdownRendererParseResult.cs#L126)

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

Parameters

**span OfficeIMO.Markdown.MarkdownSourceSpan required**

Returns

`MarkdownSyntaxNode?`

`public MarkdownSyntaxNode? FindDeepestNodeAtLine(int lineNumber)` [#](#method-finddeepestnodeatline-int32)

[MarkdownRendererParseResult.cs:63](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.MarkdownRenderer/MarkdownRendererParseResult.cs#L63)

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

Parameters

**lineNumber int required**

Returns

`MarkdownSyntaxNode?`

`public MarkdownSyntaxNode? FindDeepestNodeAtPosition(int lineNumber, int columnNumber)` [#](#method-finddeepestnodeatposition-int32-int32)

[MarkdownRendererParseResult.cs:66](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.MarkdownRenderer/MarkdownRendererParseResult.cs#L66)

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

Parameters

**lineNumber int required**

**columnNumber int required**

Returns

`MarkdownSyntaxNode?`

`public MarkdownSyntaxNode? FindDeepestNodeContainingSpan(MarkdownSourceSpan span)` [#](#method-finddeepestnodecontainingspan-officeimo-markdown-markdownsourcespan)

[MarkdownRendererParseResult.cs:81](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.MarkdownRenderer/MarkdownRendererParseResult.cs#L81)

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

Parameters

**span OfficeIMO.Markdown.MarkdownSourceSpan required**

Returns

`MarkdownSyntaxNode?`

`public MarkdownSyntaxNode? FindDeepestNodeOverlappingSpan(MarkdownSourceSpan span)` [#](#method-finddeepestnodeoverlappingspan-officeimo-markdown-markdownsourcespan)

[MarkdownRendererParseResult.cs:90](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.MarkdownRenderer/MarkdownRendererParseResult.cs#L90)

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

Parameters

**span OfficeIMO.Markdown.MarkdownSourceSpan required**

Returns

`MarkdownSyntaxNode?`

`public IReadOnlyList<MarkdownSyntaxNode> FindFinalNodePathAtLine(int lineNumber)` [#](#method-findfinalnodepathatline-int32)

[MarkdownRendererParseResult.cs:105](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.MarkdownRenderer/MarkdownRendererParseResult.cs#L105)

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

Parameters

**lineNumber int required**

Returns

`IReadOnlyList<MarkdownSyntaxNode>`

`public IReadOnlyList<MarkdownSyntaxNode> FindFinalNodePathAtPosition(int lineNumber, int columnNumber)` [#](#method-findfinalnodepathatposition-int32-int32)

[MarkdownRendererParseResult.cs:108](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.MarkdownRenderer/MarkdownRendererParseResult.cs#L108)

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

Parameters

**lineNumber int required**

**columnNumber int required**

Returns

`IReadOnlyList<MarkdownSyntaxNode>`

`public IReadOnlyList<MarkdownSyntaxNode> FindFinalNodePathContainingSpan(MarkdownSourceSpan span)` [#](#method-findfinalnodepathcontainingspan-officeimo-markdown-markdownsourcespan)

[MarkdownRendererParseResult.cs:120](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.MarkdownRenderer/MarkdownRendererParseResult.cs#L120)

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 required**

Returns

`IReadOnlyList<MarkdownSyntaxNode>`

`public IReadOnlyList<MarkdownSyntaxNode> FindFinalNodePathOverlappingSpan(MarkdownSourceSpan span)` [#](#method-findfinalnodepathoverlappingspan-officeimo-markdown-markdownsourcespan)

[MarkdownRendererParseResult.cs:129](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.MarkdownRenderer/MarkdownRendererParseResult.cs#L129)

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 required**

Returns

`IReadOnlyList<MarkdownSyntaxNode>`

`public MarkdownSyntaxNode? FindNearestBlockAtLine(int lineNumber)` [#](#method-findnearestblockatline-int32)

[MarkdownRendererParseResult.cs:75](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.MarkdownRenderer/MarkdownRendererParseResult.cs#L75)

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

Parameters

**lineNumber int required**

Returns

`MarkdownSyntaxNode?`

`public MarkdownSyntaxNode? FindNearestBlockAtPosition(int lineNumber, int columnNumber)` [#](#method-findnearestblockatposition-int32-int32)

[MarkdownRendererParseResult.cs:78](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.MarkdownRenderer/MarkdownRendererParseResult.cs#L78)

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

Parameters

**lineNumber int required**

**columnNumber int required**

Returns

`MarkdownSyntaxNode?`

`public MarkdownSyntaxNode? FindNearestBlockContainingSpan(MarkdownSourceSpan span)` [#](#method-findnearestblockcontainingspan-officeimo-markdown-markdownsourcespan)

[MarkdownRendererParseResult.cs:87](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.MarkdownRenderer/MarkdownRendererParseResult.cs#L87)

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

Parameters

**span OfficeIMO.Markdown.MarkdownSourceSpan required**

Returns

`MarkdownSyntaxNode?`

`public MarkdownSyntaxNode? FindNearestBlockOverlappingSpan(MarkdownSourceSpan span)` [#](#method-findnearestblockoverlappingspan-officeimo-markdown-markdownsourcespan)

[MarkdownRendererParseResult.cs:96](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.MarkdownRenderer/MarkdownRendererParseResult.cs#L96)

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

Parameters

**span OfficeIMO.Markdown.MarkdownSourceSpan required**

Returns

`MarkdownSyntaxNode?`

`public MarkdownSyntaxNode? FindNearestFinalBlockAtLine(int lineNumber)` [#](#method-findnearestfinalblockatline-int32)

[MarkdownRendererParseResult.cs:111](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.MarkdownRenderer/MarkdownRendererParseResult.cs#L111)

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

Parameters

**lineNumber int required**

Returns

`MarkdownSyntaxNode?`

`public MarkdownSyntaxNode? FindNearestFinalBlockAtPosition(int lineNumber, int columnNumber)` [#](#method-findnearestfinalblockatposition-int32-int32)

[MarkdownRendererParseResult.cs:114](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.MarkdownRenderer/MarkdownRendererParseResult.cs#L114)

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 int required**

**columnNumber int required**

Returns

`MarkdownSyntaxNode?`

`public MarkdownSyntaxNode? FindNearestFinalBlockContainingSpan(MarkdownSourceSpan span)` [#](#method-findnearestfinalblockcontainingspan-officeimo-markdown-markdownsourcespan)

[MarkdownRendererParseResult.cs:123](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.MarkdownRenderer/MarkdownRendererParseResult.cs#L123)

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 required**

Returns

`MarkdownSyntaxNode?`

`public MarkdownSyntaxNode? FindNearestFinalBlockOverlappingSpan(MarkdownSourceSpan span)` [#](#method-findnearestfinalblockoverlappingspan-officeimo-markdown-markdownsourcespan)

[MarkdownRendererParseResult.cs:132](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.MarkdownRenderer/MarkdownRendererParseResult.cs#L132)

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

Parameters

**span OfficeIMO.Markdown.MarkdownSourceSpan required**

Returns

`MarkdownSyntaxNode?`

`public IReadOnlyList<MarkdownSyntaxNode> FindNodePathAtLine(int lineNumber)` [#](#method-findnodepathatline-int32)

[MarkdownRendererParseResult.cs:69](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.MarkdownRenderer/MarkdownRendererParseResult.cs#L69)

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

Parameters

**lineNumber int required**

Returns

`IReadOnlyList<MarkdownSyntaxNode>`

`public IReadOnlyList<MarkdownSyntaxNode> FindNodePathAtPosition(int lineNumber, int columnNumber)` [#](#method-findnodepathatposition-int32-int32)

[MarkdownRendererParseResult.cs:72](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.MarkdownRenderer/MarkdownRendererParseResult.cs#L72)

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

Parameters

**lineNumber int required**

**columnNumber int required**

Returns

`IReadOnlyList<MarkdownSyntaxNode>`

`public IReadOnlyList<MarkdownSyntaxNode> FindNodePathContainingSpan(MarkdownSourceSpan span)` [#](#method-findnodepathcontainingspan-officeimo-markdown-markdownsourcespan)

[MarkdownRendererParseResult.cs:84](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.MarkdownRenderer/MarkdownRendererParseResult.cs#L84)

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

Parameters

**span OfficeIMO.Markdown.MarkdownSourceSpan required**

Returns

`IReadOnlyList<MarkdownSyntaxNode>`

`public IReadOnlyList<MarkdownSyntaxNode> FindNodePathOverlappingSpan(MarkdownSourceSpan span)` [#](#method-findnodepathoverlappingspan-officeimo-markdown-markdownsourcespan)

[MarkdownRendererParseResult.cs:93](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.MarkdownRenderer/MarkdownRendererParseResult.cs#L93)

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

Parameters

**span OfficeIMO.Markdown.MarkdownSourceSpan required**

Returns

`IReadOnlyList<MarkdownSyntaxNode>`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public MarkdownDocument Document { get; }` [#](#property-document)

[MarkdownRendererParseResult.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.MarkdownRenderer/MarkdownRendererParseResult.cs#L10)

The final renderer-owned markdown document after parsing and renderer transforms.

`public string PreprocessedMarkdown { get; }` [#](#property-preprocessedmarkdown)

[MarkdownRendererParseResult.cs:13](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.MarkdownRenderer/MarkdownRendererParseResult.cs#L13)

The final markdown text after renderer preprocessing and before parsing.

`public string SourceMarkdown { get; }` [#](#property-sourcemarkdown)

[MarkdownRendererParseResult.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.MarkdownRenderer/MarkdownRendererParseResult.cs#L16)

The reader-normalized markdown source text used to compute syntax source spans.

`public string OriginalMarkdown { get; }` [#](#property-originalmarkdown)

[MarkdownRendererParseResult.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.MarkdownRenderer/MarkdownRendererParseResult.cs#L18)

The original reader input retained when trivia preservation is enabled; otherwise this falls back to [MarkdownRendererParseResult.SourceMarkdown](/api/markdown-renderer/officeimo-markdownrenderer-markdownrendererparseresult/).

`public bool PreservesOriginalMarkdown { get; }` [#](#property-preservesoriginalmarkdown)

[MarkdownRendererParseResult.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.MarkdownRenderer/MarkdownRendererParseResult.cs#L20)

Indicates whether [MarkdownRendererParseResult.OriginalMarkdown](/api/markdown-renderer/officeimo-markdownrenderer-markdownrendererparseresult/) contains the exact reader input captured before normalization.

`public MarkdownSyntaxNode SyntaxTree { get; }` [#](#property-syntaxtree)

[MarkdownRendererParseResult.cs:23](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.MarkdownRenderer/MarkdownRendererParseResult.cs#L23)

The original syntax tree produced before document transforms were applied.

`public MarkdownSyntaxNode FinalSyntaxTree { get; }` [#](#property-finalsyntaxtree)

[MarkdownRendererParseResult.cs:25](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.MarkdownRenderer/MarkdownRendererParseResult.cs#L25)

The syntax tree corresponding to the final renderer-owned [MarkdownRendererParseResult.Document](/api/markdown-renderer/officeimo-markdownrenderer-markdownrendererparseresult/).

`public IReadOnlyList<MarkdownDocumentTransformDiagnostic> TransformDiagnostics { get; }` [#](#property-transformdiagnostics)

[MarkdownRendererParseResult.cs:28](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.MarkdownRenderer/MarkdownRendererParseResult.cs#L28)

Document-transform diagnostics from the reader and renderer pipelines.

`public IReadOnlyList<MarkdownRendererPreProcessorDiagnostic> PreProcessorDiagnostics { get; }` [#](#property-preprocessordiagnostics)

[MarkdownRendererParseResult.cs:31](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.MarkdownRenderer/MarkdownRendererParseResult.cs#L31)

Renderer pre-parse processing diagnostics.

`public IReadOnlyList<MarkdownReferenceLinkDefinition> ReferenceLinkDefinitions { get; }` [#](#property-referencelinkdefinitions)

[MarkdownRendererParseResult.cs:33](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.MarkdownRenderer/MarkdownRendererParseResult.cs#L33)

Effective reference-style link definitions collected by the reader parse.

`public IReadOnlyList<MarkdownAbbreviationDefinition> AbbreviationDefinitions { get; }` [#](#property-abbreviationdefinitions)

[MarkdownRendererParseResult.cs:35](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.MarkdownRenderer/MarkdownRendererParseResult.cs#L35)

Effective abbreviation definitions collected by the reader parse.

<!-- PowerForge markdown artifact sha256:3EBC73E3C8383E776C84B684E7292F0DB4D0A259A46D1F8687618F3E98B8767D -->
