Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

MarkdownNativeSourceEdit

OfficeIMO.Markdown

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

Non-mutating source edit derived from a native markdown source span.

Inheritance

  • object
  • MarkdownNativeSourceEdit

Usage

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

Methods

public string Apply(string sourceMarkdown) #

Applies this edit to the supplied markdown source and returns the edited text.

Parameters

sourceMarkdown string required

Returns

string

Properties

public MarkdownSourceSpan SourceSpan { get; } #

Source span this edit replaces.

public int StartOffset { get; } #

0-based inclusive start offset in the source markdown.

public int EndOffsetInclusive { get; } #

0-based inclusive end offset in the source markdown.

public string ReplacementMarkdown { get; } #

Replacement markdown.

public MarkdownOriginalSourceSliceFailureReason? OriginalSourceFailureReason { get; } #

Known reason this edit cannot be applied to original reader input byte-for-byte, when the edit target is already known to be non-original.