src/language-markdown/utils.js/isAutolink
function isAutolink(node) {
  if (!node || node.type !== "link" || node.children.length !== 1) {
    return false;
  }
  const child = node.children[0];
  return (
    child &&
    locStart(node) === locStart(child) &&
    locEnd(node) === locEnd(child)
  );
}