mdast utility to get the plain text content of a node.
npm install mdast-util-to-string
var unified =var parse =var toString =var tree =console // => 'Some emphasis, importance, and code.'
Get the text content of a node or list of nodes.
The algorithm checks
alt, and finally
If no value is found, the algorithm checks the children of
node and joins them
(without spaces or newlines).
This is not a markdown to plain-text library. Use
nlcst-to-string— Get text content in nlcst
hast-util-to-string— Get text content in hast
hast-util-to-text— Get text content in hast according to the
hast-util-from-string— Set text content in hast
This project has a code of conduct. By interacting with this repository, organization, or community you agree to abide by its terms.