mdast utility to extract plain text content
JSON →mdast-util-to-string is a focused utility within the unified ecosystem designed to extract the plain text content from an mdast (Markdown Abstract Syntax Tree) node or a list of nodes. It is currently stable at version 4.0.0. The project maintains compatibility with maintained versions of Node.js, typically releasing new major versions when older Node.js versions become unmaintained, which often includes breaking changes like switching to ESM or dropping specific API support. This package prioritizes text extraction over full markdown serialization, differentiating itself from `mdast-util-to-markdown`. It's particularly useful for scenarios like generating excerpts, search indexing, or displaying a node's textual content without its formatting, similar to `hast-util-to-string` for hast trees. It ships with full TypeScript support.
Traffic · last 30 days ↑100% vs prev 7d
top countries 🇺🇸 United States · 🇨🇦 Canada · 🇺🇦 Ukraine · 🇩🇪 Germany · 🇫🇷 France