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