API Reference

Class

MarkdownInlineTransformContext

Namespace OfficeIMO.Markdown
Assembly OfficeIMO.Markdown
Modifiers sealed

Context passed to post-parse inline transform extensions.

Inheritance

  • Object
  • MarkdownInlineTransformContext

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters

Methods

public Nullable<MarkdownSourceSpan> GetSourceSpan(IMarkdownInline inline) #
Returns: Nullable<MarkdownSourceSpan>

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

Parameters

inline OfficeIMO.Markdown.IMarkdownInline requiredposition: 0
TryCreateSourceSlice 2 overloads
public Boolean TryCreateSourceSlice(MarkdownSourceSpan sourceSpan, out MarkdownSourceSlice slice) #
Returns: Boolean

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

Parameters

inline OfficeIMO.Markdown.IMarkdownInline requiredposition: 0
slice OfficeIMO.Markdown.MarkdownSourceSlice@ requiredposition: 1
TryCreateSourceSlice(OfficeIMO.Markdown.MarkdownSourceSpan sourceSpan, OfficeIMO.Markdown.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

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 MarkdownReaderOptions Options { get; } #

Reader options active for the current parse.

public Boolean IsNestedSequence { get; } #

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