Skip to content

Commit

Permalink
Revert "Quote v2: update raw transform to support <blockquote><p><cite>"
Browse files Browse the repository at this point in the history
This reverts commit 9c2650a.
  • Loading branch information
oandregal authored and ellatrix committed Mar 28, 2022
1 parent b94703b commit f101a6c
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions packages/block-library/src/quote/v2/transforms.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,11 @@ const transforms = {
node.nodeName === 'FIGURE' &&
!! node.querySelector( 'blockquote' ),
transform: ( node ) => {
const cite = node.querySelector( 'cite' );
const attribution =
cite?.innerHTML ??
node.querySelector( 'figcaption' )?.innerHTML;
cite?.parentNode?.removeChild( cite );
return createBlock(
'core/quote',
{
attribution,
attribution: node.querySelector( 'figcaption' )
?.innerHTML,
},
rawHandler( {
HTML: node.querySelector( 'blockquote' ).innerHTML,
Expand Down

0 comments on commit f101a6c

Please sign in to comment.