We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ec335b commit f1e235dCopy full SHA for f1e235d
README.md
@@ -30,7 +30,7 @@ const util = require('reshape-plugin-util')
30
31
module.exports = function yellPlugin (tree) {
32
return util.modifyNodes(tree, (node) => node.name === 'p', (node) => {
33
- node.content = node.content.map((n) => n.content.toUpperCase())
+ node.content = node.content.map((n) => Object.assign(n, { content: n.content.toUpperCase() }))
34
return node
35
})
36
}
0 commit comments