"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.isMultiBlockRange = void 0;
var isMultiBlockRange = exports.isMultiBlockRange = function isMultiBlockRange(range) {
  if (range.endIndex - range.startIndex <= 1) {
    return false; // At most one child
  }

  // Count block nodes in the range, return true if more than one
  var blockCount = 0;
  for (var i = range.startIndex; i < range.endIndex; i++) {
    if (range.parent.child(i).isBlock) {
      blockCount++;
    }
    if (blockCount > 1) {
      return true;
    }
  }
  return false;
};