visitElementAfter method
Called when an Element has been reached, after its children have been visited.
Will not be called if visitElementBefore returns false
.
Implementation
@override
void visitElementAfter(Element element) {
assert(identical(_elementStack.last, element));
if (element.children != null &&
element.children!.isNotEmpty &&
_isBlockTag(_lastVisitedTag) &&
_isBlockTag(element.tag)) {
buffer.writeln();
} else if (element.tag == 'blockquote') {
buffer.writeln();
}
_writeCloseTag(element);
_lastVisitedTag = _elementStack.removeLast().tag;
}