UNPKG

@mintlify/scraping

Version:

Scrape documentation frameworks to Mintlify docs

11 lines 265 B
import { visit } from 'unist-util-visit'; export function getText(element) { if (!element) return ''; let text = ''; visit(element, 'text', function (node) { text += node.value; }); return text; } //# sourceMappingURL=text.js.map