Skip to content

Commit

Permalink
Add ungroup transform as transform to p
Browse files Browse the repository at this point in the history
  • Loading branch information
richtabor committed Jun 23, 2023
1 parent 6cc0a82 commit 7c7cb9e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions packages/block-library/src/quote/transforms.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,19 @@ const transforms = {
} );
},
},
{
type: 'block',
blocks: [ 'core/paragraph' ],
transform: ( { citation }, innerBlocks ) =>
citation
? [
...innerBlocks,
createBlock( 'core/paragraph', {
content: citation,
} ),
]
: innerBlocks,
},
{
type: 'block',
blocks: [ 'core/group' ],
Expand Down

0 comments on commit 7c7cb9e

Please sign in to comment.