code: function addText(value, nodes) {
      var tail
  
      if (value) {
        tail = nodes[nodes.length - 1]
  
        if (tail && tail.type === 'text') {
          tail.value += value
        } else {
          nodes.push(buildText(value))
        }
      }
  
      return nodes
    }
docs: Add a text.