OfficeIMO

API Reference

Class

MarkdownInlineParserContext

Namespace OfficeIMO.Markdown
Assembly OfficeIMO.Markdown
Modifiers sealed

Context passed to custom inline parser extensions.

Inheritance

  • Object
  • MarkdownInlineParserContext

Methods

public Nullable<MarkdownSourceSpan> GetSourceSpan(Int32 relativeStart, Int32 length) #
Returns: Nullable<MarkdownSourceSpan>

Returns the source span for a slice relative to the current parser position, when source mapping is available.

Parameters

relativeStart System.Int32 requiredposition: 0
length System.Int32 requiredposition: 1
public InlineSequence ParseNestedInlines(Int32 relativeStart, Int32 length, Boolean allowLinks = true, Boolean allowImages = true) #
Returns: InlineSequence

Parses a nested inline segment relative to the current parser position while preserving source-map offsets.

Parameters

relativeStart System.Int32 requiredposition: 0
length System.Int32 requiredposition: 1
allowLinks System.Boolean = true optionalposition: 2
allowImages System.Boolean = true optionalposition: 3

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 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.