Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

MarkdownRoundtripDiagnostic

OfficeIMO.Markdown

Namespace
OfficeIMO.Markdown
Assembly
OfficeIMO.Markdown
Source revision
7fbbd72e7c5a with working tree changes
Modifiers
sealed

Diagnostic emitted when a roundtrip writer cannot preserve source bytes losslessly.

Inheritance

  • object
  • MarkdownRoundtripDiagnostic

Usage

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

Accepted by parameters 1

Constructors

public MarkdownRoundtripDiagnostic(string id, string message, MarkdownSourceSpan? sourceSpan = null, IReadOnlyList<MarkdownSourceSpan>? relatedSourceSpans = null, MarkdownOriginalSourceSliceFailureReason? originalSourceFailureReason = null) #

Creates a roundtrip diagnostic.

Parameters

id string required
message string required
sourceSpan OfficeIMO.Markdown.MarkdownSourceSpan? = null optional
relatedSourceSpans System.Collections.Generic.IReadOnlyList<OfficeIMO.Markdown.MarkdownSourceSpan>? = null optional
originalSourceFailureReason OfficeIMO.Markdown.MarkdownOriginalSourceSliceFailureReason? = null optional

Properties

public string Id { get; } #

Stable diagnostic identifier.

public string Message { get; } #

Human-readable diagnostic message.

public MarkdownSourceSpan? SourceSpan { get; } #

Optional source span that caused or best explains the fallback.

public IReadOnlyList<MarkdownSourceSpan> RelatedSourceSpans { get; } #

Additional source spans related to the fallback, such as individual transform input blocks.

public MarkdownOriginalSourceSliceFailureReason? OriginalSourceFailureReason { get; } #

Machine-readable reason an original source mapping failed, when the diagnostic represents that fallback.