code: function all(config, parent) {
    var children = parent.children
    var length = children && children.length
    var index = -1
    var result = []
    var child
    var node
    var pos
    var prevEndLine
    var prevOffset
    var endLine
  
    while (++index < length) {
      node = children[index]
      pos = node.position
      endLine = position.start(node).line
  
      if (prevEndLine && endLine !== prevEndLine) {
        child = config.parser.tokenizeWhiteSpace(
          repeat(newline, endLine - prevEndLine)
        )
        patch(config, [child], prevOffset)
  
        if (child.value.length < 2) {
          child.value = repeat(newline, 2)
        }
  
        result.push(child)
      }
  
      child = one(config, node)
  
      if (child) {
        result = result.concat(child)
      }
  
      pos = position.end(node)
      prevEndLine = pos.line
      prevOffset = pos.offset
    }
  
    return result
  }
docs: Convert all nodes in `parent` (mdast) into NLCST.