diff --git a/packages/block-library/src/list/transforms.js b/packages/block-library/src/list/transforms.js index 32667a99a735a..8f2c768a343b7 100644 --- a/packages/block-library/src/list/transforms.js +++ b/packages/block-library/src/list/transforms.js @@ -161,23 +161,6 @@ const transforms = { } ) ), }, - { - type: 'block', - blocks: [ 'core/pullquote' ], - transform: ( { values, anchor } ) => { - return createBlock( 'core/pullquote', { - value: toHTMLString( { - value: create( { - html: values, - multilineTag: 'li', - multilineWrapperTags: [ 'ul', 'ol' ], - } ), - multilineTag: 'p', - } ), - anchor, - } ); - }, - }, { type: 'block', blocks: [ 'core/table-of-contents' ], diff --git a/packages/block-library/src/list/v2/transforms.js b/packages/block-library/src/list/v2/transforms.js index d357df3d8ed65..ab23c4c75cd91 100644 --- a/packages/block-library/src/list/v2/transforms.js +++ b/packages/block-library/src/list/v2/transforms.js @@ -9,13 +9,8 @@ import { flatMap } from 'lodash'; /** * WordPress dependencies */ -import { createBlock, switchToBlockType } from '@wordpress/blocks'; -import { - __UNSTABLE_LINE_SEPARATOR, - create, - split, - toHTMLString, -} from '@wordpress/rich-text'; +import { createBlock } from '@wordpress/blocks'; +import { create, split, toHTMLString } from '@wordpress/rich-text'; /** * Internal dependencies @@ -83,26 +78,6 @@ const transforms = { ); }, }, - { - type: 'block', - blocks: [ 'core/quote', 'core/pullquote' ], - transform: ( { value, anchor } ) => { - return createBlock( - 'core/list', - { - anchor, - }, - split( - create( { html: value, multilineTag: 'p' } ), - __UNSTABLE_LINE_SEPARATOR - ).map( ( result ) => { - return createBlock( 'core/list-item', { - content: toHTMLString( { value: result } ), - } ); - } ) - ); - }, - }, ...[ '*', '-' ].map( ( prefix ) => ( { type: 'prefix', prefix, @@ -147,19 +122,6 @@ const transforms = { ); }, } ) ), - ...[ 'core/quote', 'core/pullquote' ].map( ( block ) => ( { - type: 'block', - blocks: [ block ], - transform: ( attributes, innerBlocks ) => { - return switchToBlockType( - switchToBlockType( - createBlock( 'core/list', attributes, innerBlocks ), - 'core/paragraph' - ), - block - ); - }, - } ) ), ], };