MarkdownInlineTransformContext
OfficeIMO.Markdown
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
Returns
MarkdownSourceSpan?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
- slice OfficeIMO.Markdown.MarkdownSourceSlice
Returns
boolpublic 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
- slice OfficeIMO.Markdown.MarkdownSourceSlice
Returns
boolInherited Methods
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.