Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

MarkdownInlineTransformContext

OfficeIMO.Markdown

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

Context passed to post-parse inline transform extensions.

Inheritance

  • object
  • MarkdownInlineTransformContext

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.

Accepted by parameters 2

Methods

public MarkdownSourceSpan? GetSourceSpan(IMarkdownInline inline) #

Returns the source span associated with an inline node, when the node came from parsed Markdown source.

Parameters

inline OfficeIMO.Markdown.IMarkdownInline required
TryCreateSourceSlice 2 overloads
public bool TryCreateSourceSlice(IMarkdownInline inline, out MarkdownSourceSlice slice) #

Creates a normalized source slice for an inline node, when the node came from parsed Markdown source.

Parameters

inline OfficeIMO.Markdown.IMarkdownInline required
slice OfficeIMO.Markdown.MarkdownSourceSlice required

Returns

bool
public bool TryCreateSourceSlice(MarkdownSourceSpan sourceSpan, out MarkdownSourceSlice slice) #

Creates a normalized source slice for a token or field source span captured during inline parsing.

Parameters

sourceSpan OfficeIMO.Markdown.MarkdownSourceSpan required
slice OfficeIMO.Markdown.MarkdownSourceSlice required

Returns

bool

Properties

public string SourceText { get; } #

Inline source text for the root inline parse that produced the current sequence. For nested inline containers this remains the root inline source slice.

public MarkdownLoadOptions Options { get; } #

Reader options active for the current parse.

public bool IsNestedSequence { get; } #

Returns true when the transform is visiting a nested inline container sequence.