We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8875e9f commit 07ac952Copy full SHA for 07ac952
1 file changed
src/block/icon-list/transforms.js
@@ -53,12 +53,12 @@ const transforms = {
53
transform: blockAttributes => {
54
let childBlocks = []
55
if ( blockAttributes.length > 1 ) {
56
- childBlocks = blockAttributes.map( ( { content } ) => {
57
- return createBlock( 'stackable/icon-list-item', { text: content } )
+ childBlocks = blockAttributes.map( ( { content, text } ) => {
+ return createBlock( 'stackable/icon-list-item', { text: content ?? text ?? '' } )
58
} )
59
} else if ( blockAttributes.length === 1 ) {
60
const value = create( {
61
- html: blockAttributes[ 0 ].content,
+ html: blockAttributes[ 0 ].content ?? blockAttributes[ 0 ].text ?? '',
62
63
childBlocks = split( value, '\n' ).map( result => {
64
return createBlock( 'stackable/icon-list-item', {
0 commit comments