API Reference
MarkdownInlineParserContext
Context passed to custom inline parser extensions.
Inheritance
- Object
- MarkdownInlineParserContext
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Accepted by parameters
- Method MarkdownInlineParser.BeginInvoke
- Method MarkdownInlineParser.Invoke
Methods
public Nullable<MarkdownSourceSpan> GetSourceSpan(Int32 relativeStart, Int32 length) #Nullable<MarkdownSourceSpan>Returns the source span for a slice relative to the current parser position, when source mapping is available.
Parameters
- relativeStart System.Int32
- length System.Int32
public InlineSequence ParseNestedInlines(Int32 relativeStart, Int32 length, Boolean allowLinks = true, Boolean allowImages = true) #InlineSequenceParses a nested inline segment relative to the current parser position while preserving source-map offsets.
Parameters
- relativeStart System.Int32
- length System.Int32
- allowLinks System.Boolean = true
- allowImages System.Boolean = true
public Boolean TryCreateSourceSlice(Int32 relativeStart, Int32 length, out MarkdownSourceSlice slice) #BooleanCreates a normalized source slice for a range relative to the current parser position.
Parameters
- relativeStart System.Int32
- Zero-based character offset from the current parser position.
- length System.Int32
- Number of inline-source characters covered by the slice.
- slice OfficeIMO.Markdown.MarkdownSourceSlice@
- Materialized normalized source slice when the method returns true.
Returns
true when source mapping and normalized reader input are available for the requested range.
Inherited Methods
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object
Properties
public String Text { get; } #Full inline source text being parsed.
public Int32 Position { get; } #Current parser position within Text.
public MarkdownReaderOptions Options { get; } #Reader options active for the current parse.
public MarkdownReaderState State { get; } #Reader state shared with the current parse, including reference definitions when available.
public Boolean AllowLinks { get; } #Whether nested parsing at this point is allowed to produce links.
public Boolean AllowImages { get; } #Whether nested parsing at this point is allowed to produce images.
public Char CurrentChar { get; } #Character at the current parser position, or '\0' when positioned at the end of the input.
public String RemainingText { get; } #Returns the remaining unparsed text starting at Position.