InlineParser class

Maintains the internal state needed to parse inline span elements in Markdown.

Inheritance

Constructors

InlineParser(String? source, Document document)
InlineParser.be(String? source, Document document, List<InlineSyntax> syntaxes)
Instantiates with all syntaxes specified in syntaxes. It doesn't add any flavor or default syntaxes into it.

Properties

document Document
The Markdown document this parser is parsing.
final
hashCode int
The hash code for this object.
no setterinherited
isDone bool
no setterinherited
options → dynamic
The options passed to document.
no setter
pos int
The current read position.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
source String?
The string of Markdown being parsed.
finalinherited
start int
Starting position of the last unconsumed text.
getter/setter pair
syntaxes List<InlineSyntax>
final

Methods

addNode(Node node) → void
Add node to the last TagState on the stack.
advanceBy(int length) → void
inherited
charAt(int index) int
inherited
consume(int length) → void
existsDilimiter(bool test(Delimiter delimiter)) bool
Tests if a delimiter exists.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parse() List<Node>
pushDelimiter(Delimiter delimiter) → void
Push state onto the stack of TagStates.
toString() String
A string representation of this object.
inherited
writeText() → void

Operators

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

Static Properties

simpleSyntaxes List<InlineSyntax>
Similar to _defaultSyntaxes, but it excludes _ and hard-line-break, while including ~~
final