mixin markdown::ParserState

markdown::ParserState

@Js

Source

Block parsing state.

activeBlockParser

abstract BlockParser activeBlockParser()

Source

Get the deepest open block parser

column

abstract Int column()

Source

The colum is the position within the line after tab characters have been processed as 4-space tab stops. If the line doesn't contain any tabs, it's the same as the index. If the line starts with a tab, followed by text, then the column for the first character of the text is 4 (the index is 1)

Returns the current column within the line (0-based)

indent

abstract Int indent()

Source

Get the indentation in columns (either by spaces or tab stop of 4), starting from column.

index

abstract Int index()

Source

The current index within the line (0-based)

isBlank

abstract Bool isBlank()

Source

Return true if the current line is blank starting from the index

line

abstract SourceLine? line()

Source

The current source line being parsed (full line)

nextNonSpaceIndex

abstract Int nextNonSpaceIndex()

Source

Get the index of the next non-space character starting from index (may be the same) (0-based)