mdast-util-to-string1.0.5 • Public • Published
Get the plain text content of an MDAST 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.
The algorithm checks
alt, and finally
If no value is found, the algorithm checks the children of
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-from-string— Set text content in HAST
syntax-tree/mdast for ways to get
This organisation has a Code of Conduct. By interacting with this repository, organisation, or community you agree to abide by its terms.