API Reference
Class
MarkdownBlockParserContext
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
- lineCount System.Int32
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
- lineCount System.Int32
public Boolean TryGetLine(Int32 relativeOffset, out String line) #Returns:
BooleanReturns a source line relative to the current line.
Parameters
- relativeOffset System.Int32
- line System.String@
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object
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.