Skip to content

Commit 6c51a6b

Browse files
committed
also pass the processed selector, not the original selector
1 parent 5ddaafb commit 6c51a6b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/render-content/plugins/wrap-in-element.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ module.exports = options => {
2222
throw new TypeError('Expected a `string` as selector')
2323
}
2424

25-
for (const match of selectAll(options.selector, tree)) {
25+
for (const match of selectAll(selector, tree)) {
2626
visit(tree, match, (node, i, parent) => {
2727
const parsedWrapper = parseSelector(wrapper)
2828
parsedWrapper.children = [node]

0 commit comments

Comments
 (0)