docs: function transform(node) {
    /**
     * Combine adjacent text and inline nodes before processing so they can
     * share marks.
     */
    const combinedChildren = node.nodes && combineTextAndInline(node.nodes);
  
    /**
     * Call `transform` recursively on child nodes, and flatten the resulting
     * array.
     */
    const children = !isEmpty(combinedChildren) && flatMap(combinedChildren, transform);
  
    /**
     * Run individual nodes through conversion factories.
     */
    return ['text'].includes(node.object) ? convertTextNode(node) : convertNode(node, children);
  }