From 6c51a6b9709b177df1bafc8e8ce61b79204032ca Mon Sep 17 00:00:00 2001 From: Sarah Schneider Date: Wed, 21 Apr 2021 15:00:51 -0400 Subject: [PATCH] also pass the processed selector, not the original selector --- lib/render-content/plugins/wrap-in-element.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]