Skip to content

Commit

Permalink
Fix example (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
avigoldman authored and jescalan committed Feb 3, 2018
1 parent 5ec335b commit f1e235d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const util = require('reshape-plugin-util')

module.exports = function yellPlugin (tree) {
return util.modifyNodes(tree, (node) => node.name === 'p', (node) => {
node.content = node.content.map((n) => n.content.toUpperCase())
node.content = node.content.map((n) => Object.assign(n, { content: n.content.toUpperCase() }))
return node
})
}
Expand Down

0 comments on commit f1e235d

Please sign in to comment.