Skip to content

Commit

Permalink
Code: Add transformation to Paragraph (#43938)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka authored Sep 8, 2022
1 parent d19258c commit c154f6a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/block-library/src/code/transforms.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,15 @@ const transforms = {
},
},
],
to: [
{
type: 'block',
blocks: [ 'core/paragraph' ],
transform: ( { content } ) => {
return createBlock( 'core/paragraph', { content } );
},
},
],
};

export default transforms;

0 comments on commit c154f6a

Please sign in to comment.