convert method
Converts input
and returns the result of the conversion.
Implementation
@override
Document convert(String input) {
final document = parse(input);
final body = document.body;
if (body == null) {
return Document.blank(withInitialText: false);
}
final nodes = _parseElement(body.nodes);
return Document.blank(withInitialText: false)
..insert(
[0],
nodes,
);
}