node_modules/mdast-util-to-hast/lib/all.js
/* Transform the children of `parent`. */
Transform the children of `parent`.
Transform the children of ` parent ` .
function all(h, parent) {
  var nodes = parent.children || [];
  var length = nodes.length;
  var values = [];
  var index = -1;
  var result;
  var head;
  while (++index < length) {
    result = one(h, nodes[index], parent);
    if (result) {
      if (index && nodes[index - 1].type === 'break') {
        if (result.value) {
          result.value = trim.left(result.value);
        }
        head = result.children && result.children[0];
        if (head && head.value) {
          head.value = trim.left(head.value);
        }
      }
      values = values.concat(result);
    }
  }
  return values;
}
function all ( h , parent ) { var nodes = parent . children || [ ] ; var length = nodes . length ; var values = [ ] ; var index = - 1 ; var result ; var head ; while ( ++ index < length ) { result = one ( h , nodes [ index ] , parent ) ; if ( result ) { if ( index && nodes [ index - 1 ] . type === 'break' ) { if ( result . value ) { result . value = trim . left ( result . value ) ; } head = result . children && result . children [ 0 ] ; if ( head && head . value ) { head . value = trim . left ( head . value ) ; } } values = values . concat ( result ) ; } } return values ; }
Transform the children of `parent`.
Transform the children of ` parent ` .