check for rendered attribute

This commit is contained in:
Philipp Kühn
2020-10-21 23:35:12 +02:00
parent 6752d52541
commit 9fad9cd476
2 changed files with 4 additions and 2 deletions

View File

@@ -69,6 +69,7 @@ export default createNode({
return {
id: {
default: '123',
rendered: true,
renderHTML: attributes => ({ class: `foo-${attributes.id}`, id: 'foo' }),
},
}