hast-util-is-css-style
Check if an element is a CSS <style>
element.
Install
npm:
npm install hast-util-is-css-style
Use
var h = require('hastscript')
var ok = require('hast-util-is-css-style')
ok(h('style')) //=> true
ok(h('style', {type: ' TEXT/CSS '})) //=> true
ok(h('style', {type: 'text/foo'})) //=> false
API
isCssStyle(node)
Return true
if node
is a <style>
element that has no type
, an empty type
, or 'text/css'
as its type
.
Contribute
See contributing.md
in rehypejs/.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, organization, or community you agree to abide by its terms.