docs: function(text) {
      let el = stack.peek();
      if (el && el.type === types.COMMENT) {
        stack.createObject(text);
        stack.closeElement(el);
      } else {
        stack.createComment(text);
      }
    }