16 lines
305 B
JavaScript
16 lines
305 B
JavaScript
'use strict';
|
|
|
|
const utils = require('./utils.cjs');
|
|
|
|
function cleanRaw(node, item, list) {
|
|
// raw in stylesheet or block children
|
|
if (
|
|
utils.isNodeChildrenList(this.stylesheet, list) ||
|
|
utils.isNodeChildrenList(this.block, list)
|
|
) {
|
|
list.remove(item);
|
|
}
|
|
}
|
|
|
|
module.exports = cleanRaw;
|