From c154f6a63d6f8af6d44aa0f568ad00e83ebf2a9a Mon Sep 17 00:00:00 2001 From: George Mamadashvili Date: Thu, 8 Sep 2022 17:43:21 +0400 Subject: [PATCH] Code: Add transformation to Paragraph (#43938) --- packages/block-library/src/code/transforms.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/block-library/src/code/transforms.js b/packages/block-library/src/code/transforms.js index 088db34a87cf4a..b19d584fb7b056 100644 --- a/packages/block-library/src/code/transforms.js +++ b/packages/block-library/src/code/transforms.js @@ -38,6 +38,15 @@ const transforms = { }, }, ], + to: [ + { + type: 'block', + blocks: [ 'core/paragraph' ], + transform: ( { content } ) => { + return createBlock( 'core/paragraph', { content } ); + }, + }, + ], }; export default transforms;