API Reference
MarkdownInlineParserContext
Context passed to custom inline parser extensions.
Inheritance
- Object
- MarkdownInlineParserContext
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
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.