code: public boolean wrapInAnchor() {
          if (ext(ANCHORLINKS | EXTANCHORLINKS)) {
              SuperNode node = (SuperNode) peek();
              List<Node> children = node.getChildren();
              if (ext(EXTANCHORLINKS)) {
                  if (children.size() > 0) {
                      AnchorNodeInfo nodeInfo = new AnchorNodeInfo();
                      collectChildrensText(node, nodeInfo);
                      String text = nodeInfo.text.toString().trim();
                      if (text.length() > 0) {
                          AnchorLinkNode anchor = new AnchorLinkNode(text, "");
                          anchor.setStartIndex(nodeInfo.startIndex);
                          anchor.setEndIndex(nodeInfo.endIndex);
                          children.add(0, anchor);
                      }
                  }
              } else {
                  if (children.size() == 1) {
                      Node child = children.get(0);
                      if (child instanceof TextNode) {
                          AnchorLinkNode anchor = new AnchorLinkNode(((TextNode) child).getText());
                          anchor.setStartIndex(child.getStartIndex());
                          anchor.setEndIndex(child.getEndIndex());
                          children.set(0, anchor);
                      }
                  }
              }
          }
  
          return true;
      }
docs: vsch: modified to accumulate text of all children