BlockParser class

Maintains the internal state needed to parse a series of lines into blocks of Markdown suitable for further inline parsing.

Constructors

BlockParser(List<Line> lines, Markdown document)

Properties

blockSyntaxes Iterable<BlockSyntax>
The enabled block syntaxes.
no setter
current Line
Gets the current line.
no setter
currentSyntax BlockSyntax?
The BlockSyntax which is running now.
no setter
document Markdown
The Markdown document this parser is parsing.
final
encounteredBlankLine bool
Whether the parser has encountered a blank line between two block-level elements.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isDone bool
no setter
linesToConsume List<Line>
The lines from _start to _pos (inclusive)
no setter
next Line?
Gets the line after the current one or null if there is none.
no setter
parentSyntax BlockSyntax?
The parent BlockSyntax when it is running in a nested syntax.
no setter
position int
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
setextHeadingDisabled bool
If the SetextHeadingSyntax is disabled temporarily
no setter

Methods

advance() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parseLines({bool disabledSetextHeading = false, BlockSyntax? fromSyntax}) List<Node>
peek(int linesAhead) Line?
Gets the line that is linesAhead lines ahead of the current one, or null if there is none.
setLine(int line) → void
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited