Check if a MDAST (markdown) node is a phrasing element.
npm:
npm install mdast-util-phrasing
var phrasing = require('mdast-util-phrasing');
phrasing({
type: 'paragraph',
children: [{type: 'text', value: 'Alpha'}]
}); //=> false
phrasing({
type: 'strong',
children: [{type: 'text', value: 'Delta'}]
}); //=> true
Check if the given value is a phrasing element.
node
(*
) — Value to check.
boolean
— whether node
passes the test.
See contributing.md
in syntax-tree/mdast
for ways to get
started.
This organisation has a Code of Conduct. By interacting with this repository, organisation, or community you agree to abide by its terms.