Package Exports
- mdast-util-phrasing
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (mdast-util-phrasing) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
mdast-util-phrasing
Check if a mdast node is phrasing content.
Install
npm:
npm install mdast-util-phrasing
Usage
var phrasing = require('mdast-util-phrasing')
phrasing({
type: 'paragraph',
children: [{type: 'text', value: 'Alpha'}]
}) // => false
phrasing({
type: 'strong',
children: [{type: 'text', value: 'Delta'}]
}) // => true
API
phrasing(node)
Check if the given value is a phrasing element.
Parameters
node
(*
) — Value to check, typically a node.
Returns
boolean
— whether node
is phrasing content.
Contribute
See contributing.md
in syntax-tree/.github
for ways to get
started.
See support.md
for ways to get help.
This project has a Code of Conduct. By interacting with this repository, organisation, or community you agree to abide by its terms.