getNodeByElement method

SpanNode getNodeByElement(
  1. Element element,
  2. MarkdownConfig config
)

Implementation

SpanNode getNodeByElement(m.Element element, MarkdownConfig config) {
  return _tag2node[element.tag]?.call(element, config, this) ??
      textGenerator?.call(element, config, this) ??
      TextNode(text: element.textContent);
}