OfficeIMO

API Reference

Class

MarkdownBlockParserContext

Namespace OfficeIMO.Markdown
Assembly OfficeIMO.Markdown
Modifiers sealed

Context passed to delegate-based custom block parser extensions.

Inheritance

  • Object
  • MarkdownBlockParserContext

Methods

public IReadOnlyList<String> GetLines(Int32 relativeStart, Int32 lineCount) #
Returns: IReadOnlyList<String>

Returns a slice of source lines relative to the current line.

Parameters

relativeStart System.Int32 requiredposition: 0
lineCount System.Int32 requiredposition: 1
public IReadOnlyList<IMarkdownBlock> ParseNestedBlocks(Int32 relativeStartLine, Int32 lineCount) #
Returns: IReadOnlyList<IMarkdownBlock>

Parses a nested markdown block range relative to the current line using the same reader options, while preserving source spans for the nested content.

Parameters

relativeStartLine System.Int32 requiredposition: 0
lineCount System.Int32 requiredposition: 1
public Boolean TryGetLine(Int32 relativeOffset, out String line) #
Returns: Boolean

Returns a source line relative to the current line.

Parameters

relativeOffset System.Int32 requiredposition: 0
line System.String@ requiredposition: 1

Properties

public IReadOnlyList<String> Lines { get; } #

Full document lines being parsed.

public Int32 LineIndex { get; } #

Zero-based current line index.

public Int32 LineNumber { get; } #

One-based current line number.

public String CurrentLine { get; } #

Current source line, or an empty string when positioned outside the input.

public MarkdownReaderOptions Options { get; } #

Reader options active for the current parse.

public MarkdownDoc Document { get; } #

Markdown document being built.

public MarkdownReaderState State { get; } #

Mutable reader state shared across parsers.