Skip to content

Commit f1e235d

Browse files
avigoldmanjescalan
authored andcommitted
Fix example (#30)
1 parent 5ec335b commit f1e235d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const util = require('reshape-plugin-util')
3030

3131
module.exports = function yellPlugin (tree) {
3232
return util.modifyNodes(tree, (node) => node.name === 'p', (node) => {
33-
node.content = node.content.map((n) => n.content.toUpperCase())
33+
node.content = node.content.map((n) => Object.assign(n, { content: n.content.toUpperCase() }))
3434
return node
3535
})
3636
}

0 commit comments

Comments
 (0)