Raw.js 285 B

123456789
  1. var { isNodeChildrenList } = require('./utils');
  2. module.exports = function cleanRaw(node, item, list) {
  3. // raw in stylesheet or block children
  4. if (isNodeChildrenList(this.stylesheet, list) ||
  5. isNodeChildrenList(this.block, list)) {
  6. list.remove(item);
  7. }
  8. };