Package Exports
- hast-util-embedded
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 (hast-util-embedded) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
hast-util-embedded

Check if a node is an embedded element.
Installation
npm:
npm install hast-util-embedded
Usage
var embedded = require('hast-util-embedded')
// Given a non-embedded value:
embedded({
type: 'element',
tagName: 'a',
properties: {href: '#alpha', title: 'Bravo'},
children: [{type: 'text', value: 'Charlie'}]
}) // => false
// Given a embedded element:
embedded({
type: 'element',
tagName: 'audio',
properties: {src: 'delta.ogg'},
children: []
}) // => true
API
embedded(node)
Check if the given value is an embedded element.
Contribute
See contributing.md
in syntax-tree/hast
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.