node_modules/mdsvex/dist/main.es.js
// Patch the position on a parent node based on its first and last child.
Patch the position on a parent node based on its first and last child.
Patch the position on a parent node based on its first and last child .
function patchPosition(child, index, node) {
  var siblings = node.children;
  if (!child.position) {
    return
  }
  if (
    index === 0 &&
    (!node.position ||  !node.position.start)
  ) {
    patch(node);
    node.position.start = child.position.start;
  }
  if (index === siblings.length - 1 && (!node.position || !node.position.end)) {
    patch(node);
    node.position.end = child.position.end;
  }
}
function patchPosition ( child , index , node ) { var siblings = node . children ; if ( ! child . position ) { return } if ( index === 0 && ( ! node . position || ! node . position . start ) ) { patch ( node ) ; node . position . start = child . position . start ; } if ( index === siblings . length - 1 && ( ! node . position || ! node . position . end ) ) { patch ( node ) ; node . position . end = child . position . end ; } }
Patch the position on a parent node based on its first and last child.
Patch the position on a parent node based on its first and last child .
/* istanbul ignore next */