append method
Appends chunk of Markdown.
Throws a StateError if the parser is already isComplete.
Implementation
void append(String chunk) {
if (_complete) {
throw StateError('append() called after complete(); call reset() first.');
}
if (chunk.isEmpty) return;
for (final line in _lines.add(chunk)) {
_engine.feed(line);
}
_doc = null;
}