/** Extract plain text from mdast phrasing content nodes. */
export function extractPlainText(nodes) {
    return nodes
        .map((n) => {
        if (n.type === 'text')
            return n.value;
        if ('children' in n)
            return extractPlainText(n.children);
        return '';
    })
        .join('');
}
//# sourceMappingURL=chunker-utils.js.map