UNPKG

hast-util-is-css-style

Version:

hast utility to check if an element is a css style

14 lines 428 B
/** * Check whether a hast node is a `<style>` that contains CSS. * * Returns `true` if `node` is a `<style>` element that has no `type`, an empty * `type`, or `'text/css'` as its `type`. * * @param {Nodes} node * Node to check. * @returns {boolean} * Whether `node` is a CSS style element. */ export function isCssStyle(node: Nodes): boolean; import type { Nodes } from 'hast'; //# sourceMappingURL=index.d.ts.map