diff --git a/lib/render-content/plugins/wrap-in-element.js b/lib/render-content/plugins/wrap-in-element.js index de761cac75..c24ad442ff 100644 --- a/lib/render-content/plugins/wrap-in-element.js +++ b/lib/render-content/plugins/wrap-in-element.js @@ -22,7 +22,7 @@ module.exports = options => { throw new TypeError('Expected a `string` as selector') } - for (const match of selectAll(options.selector, tree)) { + for (const match of selectAll(selector, tree)) { visit(tree, match, (node, i, parent) => { const parsedWrapper = parseSelector(wrapper) parsedWrapper.children = [node]