Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
9839c5b
Remove “noreferrer”.
adamsilverstein Nov 13, 2020
f240688
merge trunk, overwriting changes
adamsilverstein Jan 23, 2024
d7f9807
reintroduce noreferrer removal
adamsilverstein Jan 23, 2024
a6c69bb
additional noreferrer removal
adamsilverstein Jan 23, 2024
3dcadcc
file block test fixture noreferrer removal
adamsilverstein Jan 23, 2024
e88f166
revert snapshot change
adamsilverstein Jan 24, 2024
d7ca6bc
remove fixture noreferrer references
adamsilverstein Jan 25, 2024
7009b60
remove noreferrer from slack test fixtures
adamsilverstein Jan 26, 2024
fa8c4a8
adjust test fixtures
adamsilverstein Jan 26, 2024
b981beb
update snapshots with `npm run test:unit:update`
adamsilverstein Jan 26, 2024
a730df6
merge trunk
adamsilverstein Jan 13, 2025
9861625
remove some addiitonal noreferrer instances
adamsilverstein Jan 13, 2025
15827a2
satisfy the linter for now
adamsilverstein Jan 13, 2025
f5898b9
Merge trunk, resolve conflicts keeping trunk's onClick pattern
adamsilverstein Mar 26, 2026
30cf42e
Remove additional noreferrer instances from source code
adamsilverstein Mar 26, 2026
cb5698e
Restore noreferrer in deprecated file block save functions and fixtures
adamsilverstein Mar 26, 2026
b48574a
Merge trunk
adamsilverstein Mar 26, 2026
634c546
Merge remote-tracking branch 'origin/trunk' into remove/noreferrer
adamsilverstein Apr 13, 2026
aa2e5e0
Merge remote-tracking branch 'origin/trunk' into remove/noreferrer
adamsilverstein Apr 13, 2026
2996e13
Add CHANGELOG entry for ExternalLink noreferrer removal
adamsilverstein Apr 13, 2026
7f7f0b2
Fix lint errors: formatting and jsx-no-target-blank after noreferrer …
adamsilverstein Apr 14, 2026
2f2f030
Revert File block changes; defer to follow-up PR with migration
adamsilverstein Apr 14, 2026
2d52876
Merge remote-tracking branch 'origin/trunk' into remove/noreferrer
adamsilverstein Apr 14, 2026
d4cf0e6
Merge remote-tracking branch 'origin/trunk' into remove/noreferrer
adamsilverstein Apr 15, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const LINK_DESTINATION_NONE = 'none';
const LINK_DESTINATION_CUSTOM = 'custom';
const LINK_DESTINATION_MEDIA = 'media';
const LINK_DESTINATION_ATTACHMENT = 'attachment';
const NEW_TAB_REL = [ 'noreferrer', 'noopener' ];
const NEW_TAB_REL = [ 'noopener' ];

const ImageURLInputUI = ( {
linkDestination,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { prependHTTP } from '@wordpress/url';
import LinkControl from '../../../components/link-control';
import { useInspectorPopoverPlacement } from '../use-inspector-popover-placement';

export const NEW_TAB_REL = 'noreferrer noopener';
export const NEW_TAB_REL = 'noopener';
export const NEW_TAB_TARGET = '_blank';
export const NOFOLLOW_REL = 'nofollow';

Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/block/test/edit.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const getMockedReusableBlock = ( id ) => ( {
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p><strong>Bold</strong> <em>Italic</em> <s>Striked</s> Superscript<sup>(1)</sup> Subscript<sub>(2)</sub> <a href="http://www.wordpress.org" target="_blank" rel="noreferrer noopener">Link</a></p>
<p><strong>Bold</strong> <em>Italic</em> <s>Striked</s> Superscript<sup>(1)</sup> Subscript<sub>(2)</sub> <a href="http://www.wordpress.org" target="_blank" rel="noopener">Link</a></p>
<!-- /wp:paragraph -->

!-- wp:heading {"level":4} -->
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/button/constants.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const NEW_TAB_REL = 'noreferrer noopener';
export const NEW_TAB_REL = 'noopener';
export const NEW_TAB_TARGET = '_blank';
export const NOFOLLOW_REL = 'nofollow';
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe( 'getUpdatedLinkAttributes method', () => {

expect( result.url ).toEqual( 'https://example.com' );
expect( result.linkTarget ).toEqual( '_blank' );
expect( result.rel ).toEqual( 'noreferrer noopener' );
expect( result.rel ).toEqual( 'noopener' );
} );

it( 'should return empty rel value as undefined', () => {
Expand Down Expand Up @@ -44,9 +44,7 @@ describe( 'getUpdatedLinkAttributes method', () => {

expect( result.url ).toEqual( 'https://example.com' );
expect( result.linkTarget ).toEqual( '_blank' );
expect( result.rel ).toEqual(
'rel_value noreferrer noopener nofollow'
);
expect( result.rel ).toEqual( 'rel_value noopener nofollow' );
} );

it( 'should correctly update link attributes with opensInNewTab', () => {
Expand All @@ -61,7 +59,7 @@ describe( 'getUpdatedLinkAttributes method', () => {

expect( result.url ).toEqual( 'https://example.com' );
expect( result.linkTarget ).toEqual( '_blank' );
expect( result.rel ).toEqual( 'rel_value noreferrer noopener' );
expect( result.rel ).toEqual( 'rel_value noopener' );
} );

it( 'should correctly update link attributes with nofollow', () => {
Expand Down Expand Up @@ -106,23 +104,21 @@ describe( 'getUpdatedLinkAttributes method', () => {

expect( result.url ).toEqual( 'https://example.com' );
expect( result.linkTarget ).toEqual( '_blank' );
expect( result.rel ).toEqual(
'rel_value nofollow noreferrer noopener'
);
expect( result.rel ).toEqual( 'rel_value nofollow noopener' );
} );

it( 'should correctly handle rel with existing new tab values and remove duplicates', () => {
const options = {
url: 'example.com',
opensInNewTab: true,
nofollow: false,
rel: 'rel_value noreferrer noopener',
rel: 'rel_value noopener',
};

const result = getUpdatedLinkAttributes( options );

expect( result.url ).toEqual( 'https://example.com' );
expect( result.linkTarget ).toEqual( '_blank' );
expect( result.rel ).toEqual( 'rel_value noreferrer noopener' );
expect( result.rel ).toEqual( 'rel_value noopener' );
} );
} );
2 changes: 1 addition & 1 deletion packages/block-library/src/image/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export const LINK_DESTINATION_NONE = 'none';
export const LINK_DESTINATION_MEDIA = 'media';
export const LINK_DESTINATION_ATTACHMENT = 'attachment';
export const LINK_DESTINATION_CUSTOM = 'custom';
export const NEW_TAB_REL = [ 'noreferrer', 'noopener' ];
export const NEW_TAB_REL = [ 'noopener' ];
export const ALLOWED_MEDIA_TYPES = [ 'image' ];
export const MEDIA_ID_NO_FEATURED_IMAGE_SET = 0;
export const SIZED_LAYOUTS = [ 'flex', 'grid' ];
Expand Down
4 changes: 2 additions & 2 deletions packages/block-library/src/image/test/edit.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ describe( 'Image Block', () => {
fireEvent.press( linkTargetButton );

const expectedHtml = `<!-- wp:image {"id":1,"sizeSlug":"large","linkDestination":"custom","className":"is-style-default"} -->
<figure class="wp-block-image size-large is-style-default"><a href="https://wordpress.org" target="_blank" rel="noreferrer noopener"><img src="https://cldup.com/cXyG__fTLN.jpg" alt="" class="wp-image-1"/></a><figcaption class="wp-element-caption">Mountain</figcaption></figure>
<figure class="wp-block-image size-large is-style-default"><a href="https://wordpress.org" target="_blank" rel="noopener"><img src="https://cldup.com/cXyG__fTLN.jpg" alt="" class="wp-image-1"/></a><figcaption class="wp-element-caption">Mountain</figcaption></figure>
<!-- /wp:image -->`;
expect( getEditorHtml() ).toBe( expectedHtml );
} );
Expand All @@ -278,7 +278,7 @@ describe( 'Image Block', () => {
const initialHtml = `
<!-- wp:image {"id":1,"sizeSlug":"large","linkDestination":"custom","className":"is-style-default"} -->
<figure class="wp-block-image size-large is-style-default">
<a href="https://wordpress.org" target="_blank" rel="noreferrer noopener">
<a href="https://wordpress.org" target="_blank" rel="noopener">
<img src="https://cldup.com/cXyG__fTLN.jpg" alt="" class="wp-image-1"/>
</a>
<figcaption class="wp-element-caption">Mountain</figcaption>
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/latest-posts/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,7 @@ export default function LatestPostsEdit( { attributes, setAttributes } ) {
<a
className="wp-block-latest-posts__read-more"
href={ post.link }
rel="noopener noreferrer"
rel="noopener"
onClick={
showRedirectionPreventedNotice
}
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/latest-posts/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ function render_block_core_latest_posts( $attributes ) {
$trimmed_excerpt = substr( $trimmed_excerpt, 0, -11 );
$trimmed_excerpt .= sprintf(
/* translators: 1: A URL to a post, 2: Hidden accessibility text: Post title */
__( '… <a class="wp-block-latest-posts__read-more" href="%1$s" rel="noopener noreferrer">Read more<span class="screen-reader-text">: %2$s</span></a>' ),
__( '… <a class="wp-block-latest-posts__read-more" href="%1$s" rel="noopener">Read more<span class="screen-reader-text">: %2$s</span></a>' ),
esc_url( $post_link ),
esc_html( $title )
);
Expand Down
4 changes: 2 additions & 2 deletions packages/block-library/src/site-logo/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -282,11 +282,11 @@ const SiteLogo = ( {
),
{
a: (
// eslint-disable-next-line jsx-a11y/anchor-has-content
// eslint-disable-next-line jsx-a11y/anchor-has-content, react/jsx-no-target-blank
<a
href={ siteIconSettingsUrl }
target="_blank"
rel="noopener noreferrer"
rel="noopener"
/>
),
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default function phrasingContentReducer(
// In jsdom-jscore, 'node.target' can be null.
// TODO: Explore fixing this by patching jsdom-jscore.
if ( anchor.target && anchor.target.toLowerCase() === '_blank' ) {
anchor.rel = 'noreferrer noopener';
anchor.rel = 'noopener';
} else {
anchor.removeAttribute( 'target' );
anchor.removeAttribute( 'rel' );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ describe( 'phrasingContentReducer', () => {
const input =
'<a href="https://wordpress.org" target="_blank">WordPress</a>';
const output =
'<a href="https://wordpress.org" target="_blank" rel="noreferrer noopener">WordPress</a>';
'<a href="https://wordpress.org" target="_blank" rel="noopener">WordPress</a>';
expect(
deepFilterHTML( input, [ phrasingContentReducer ], {} )
).toEqual( output );
Expand Down
4 changes: 4 additions & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Breaking Changes

- `ExternalLink`: No longer adds `noreferrer` to the `rel` attribute. `noopener` is still applied. Consumers relying on the previous behavior should pass `rel="noopener noreferrer"` explicitly ([#26968](https://github.com/WordPress/gutenberg/pull/26968)).

## 32.6.0 (2026-04-15)

### Documentation
Expand Down
7 changes: 1 addition & 6 deletions packages/components/src/external-link/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,7 @@ function UnforwardedExternalLink(
const { href, children, className, rel = '', ...additionalProps } = props;
const optimizedRel = [
...new Set(
[
...rel.split( ' ' ),
'external',
'noreferrer',
'noopener',
].filter( Boolean )
[ ...rel.split( ' ' ), 'external', 'noopener' ].filter( Boolean )
),
].join( ' ' );
const classes = clsx( 'components-external-link', className );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import LinkRelIcon from './link-rel';

import styles from './style.scss';

const NEW_TAB_REL = 'noreferrer noopener';
const NEW_TAB_REL = 'noopener';
function LinkSettings( {
// Control link settings `BottomSheet` visibility
isVisible,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,12 @@ export const MoreExamplesStory: StoryFn< typeof Navigation > = ( {
title="WordPress.org"
/>
<NavigationItem item="item-5">
{ /* eslint-disable-next-line react/jsx-no-target-blank */ }
<a
className="navigation-story__wordpress-icon"
href="https://wordpress.org/"
target="_blank"
rel="noreferrer"
rel="noopener"
>
<Icon icon={ wordpress } />
<em>Custom Content</em>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export default function MoreMenu() {
'https://wordpress.org/documentation/article/block-based-widgets-editor/'
) }
target="_blank"
rel="noopener noreferrer"
rel="noopener"
>
{ __( 'Help' ) }
<VisuallyHidden as="span">
Expand Down
2 changes: 1 addition & 1 deletion packages/edit-widgets/src/components/more-menu/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export default function MoreMenu() {
'https://wordpress.org/documentation/article/block-based-widgets-editor/'
) }
target="_blank"
rel="noopener noreferrer"
rel="noopener"
>
{ __( 'Help' ) }
<VisuallyHidden as="span">
Expand Down
2 changes: 1 addition & 1 deletion packages/editor/src/components/media-categories/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const getExternalLink = ( url, text ) =>
`<a ${ getExternalLinkAttributes( url ) }>${ text }</a>`;

const getExternalLinkAttributes = ( url ) =>
`href="${ url }" target="_blank" rel="noreferrer noopener"`;
`href="${ url }" target="_blank" rel="noopener"`;

const getOpenverseLicense = ( license, licenseVersion ) => {
let licenseName = license.trim();
Expand Down
2 changes: 1 addition & 1 deletion packages/editor/src/components/more-menu/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export default function MoreMenu( { disabled = false } ) {
'https://wordpress.org/documentation/article/wordpress-block-editor/'
) }
target="_blank"
rel="noopener noreferrer"
rel="noopener"
>
{ __( 'Help' ) }
<VisuallyHidden as="span">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ exports[`PostPublishPanel should render the post-publish panel if the post is pu
<a
class="components-external-link"
href="https://wordpress.local/sample-page/"
rel="external noreferrer noopener"
rel="external noopener"
target="_blank"
>
<span
Expand Down Expand Up @@ -316,7 +316,7 @@ exports[`PostPublishPanel should render the post-publish panel if the post is sc
<a
class="components-external-link"
href="https://wordpress.local/sample-page/"
rel="external noreferrer noopener"
rel="external noopener"
target="_blank"
>
<span
Expand Down
4 changes: 2 additions & 2 deletions packages/format-library/src/link/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ export function createLinkFormat( {
if ( opensInNewWindow ) {
format.attributes.target = '_blank';
format.attributes.rel = format.attributes.rel
? format.attributes.rel + ' noreferrer noopener'
: 'noreferrer noopener';
? format.attributes.rel + ' noopener'
: 'noopener';
}

if ( nofollow ) {
Expand Down
3 changes: 2 additions & 1 deletion packages/media-editor/src/components/media-preview/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,11 @@ function MediaPreviewContent( {
<p className="media-editor-preview__mime-type">
{ mimeType }
</p>
{ /* eslint-disable-next-line react/jsx-no-target-blank */ }
<a
href={ mediaUrl }
target="_blank"
rel="noopener noreferrer"
rel="noopener"
className="media-editor-preview__download-link"
>
{ __( 'View file' ) }
Expand Down
2 changes: 1 addition & 1 deletion packages/react-native-editor/src/initial-html.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export const textBlocks = `<!-- wp:heading -->
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p><strong>Bold</strong> <em>Italic</em> <s>Striked</s> Superscript<sup>(1)</sup> Subscript<sub>(2)</sub> <a href="http://www.wordpress.org" target="_blank" rel="noreferrer noopener">Link</a></p>
<p><strong>Bold</strong> <em>Italic</em> <s>Striked</s> Superscript<sup>(1)</sup> Subscript<sub>(2)</sub> <a href="http://www.wordpress.org" target="_blank" rel="noopener">Link</a></p>
<!-- /wp:paragraph -->

<!-- wp:heading {"textAlign":"left","level":4,"className":"has-primary-background-color has-background","style":{"typography":{"lineHeight":"2.5"}}} -->
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/specs/editor/blocks/buttons.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ test.describe( 'Buttons', () => {
attributes: {
text: 'WordPress',
url: 'https://www.wordpress.org/',
rel: 'noreferrer noopener',
rel: 'noopener',
linkTarget: '_blank',
},
},
Expand Down Expand Up @@ -257,7 +257,7 @@ test.describe( 'Buttons', () => {
attributes: {
text: 'WordPress',
url: 'https://www.wordpress.org/',
rel: 'noreferrer noopener nofollow',
rel: 'noopener nofollow',
linkTarget: '_blank',
},
},
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/specs/editor/blocks/links.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ test.describe( 'Links', () => {
name: 'core/paragraph',
attributes: {
content:
'This is <a href="https://wordpress.org/gutenberg" target="_blank" rel="noreferrer noopener">Gutenberg</a>',
'This is <a href="https://wordpress.org/gutenberg" target="_blank" rel="noopener">Gutenberg</a>',
},
},
] );
Expand Down Expand Up @@ -871,7 +871,7 @@ test.describe( 'Links', () => {
{
name: 'core/paragraph',
attributes: {
content: `<a href="https://wordpress.org/gutenberg" target="_blank" rel="noreferrer noopener nofollow">Gutenberg</a>`,
content: `<a href="https://wordpress.org/gutenberg" target="_blank" rel="noopener nofollow">Gutenberg</a>`,
},
},
] );
Expand Down
7 changes: 2 additions & 5 deletions test/e2e/specs/editor/various/pattern-overrides.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,7 @@ test.describe( 'Pattern Overrides', () => {
title: 'Button with target',
content: `<!-- wp:buttons -->
<div class="wp-block-buttons"><!-- wp:button {"metadata":{"name":"${ buttonName }","bindings":{"__default":{"source":"core/pattern-overrides"}}}} -->
<div class="wp-block-button"><a class="wp-block-button__link wp-element-button" href="http://wp.org" target="_blank" rel="noreferrer noopener nofollow">Button</a></div>
<div class="wp-block-button"><a class="wp-block-button__link wp-element-button" href="http://wp.org" target="_blank" rel="noopener nofollow">Button</a></div>
<!-- /wp:button --></div>
<!-- /wp:buttons -->`,
status: 'publish',
Expand Down Expand Up @@ -831,10 +831,7 @@ test.describe( 'Pattern Overrides', () => {
const buttonLink = previewPage.getByRole( 'link', { name: 'Button' } );

await expect( buttonLink ).toHaveAttribute( 'target', '_blank' );
await expect( buttonLink ).toHaveAttribute(
'rel',
'noreferrer noopener'
);
await expect( buttonLink ).toHaveAttribute( 'rel', 'noopener' );

// Uncheck both checkboxes.
await editLinkButton.click();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ exports[`Blocks raw handling pasteHandler ms-word 1`] = `"This is a title<br>&nb

exports[`Blocks raw handling pasteHandler ms-word-list 1`] = `"<a>This is a headline?</a><br>This is a text:<br>One<br>Two<br>Three<br><a>Lorem Ipsum.</a><br>&nbsp;"`;

exports[`Blocks raw handling pasteHandler ms-word-online 1`] = `"This is a <em>heading</em>&nbsp;<br>This is a <strong>paragraph </strong>with a <a href="https://w.org/" target="_blank" rel="noreferrer noopener">link</a>.&nbsp;<br>A&nbsp;<br>Bulleted&nbsp;<br>Indented&nbsp;<br>List&nbsp;<br>&nbsp;<br>One&nbsp;<br>Two&nbsp;<br>Three&nbsp;<br><br>One&nbsp;<br>Two&nbsp;<br>Three&nbsp;<br>1&nbsp;<br>2&nbsp;<br>3&nbsp;<br>I&nbsp;<br>II&nbsp;<br>III&nbsp;<br>&nbsp;<br>An image:&nbsp;<br><img src="data:image/jpeg;base64,###">&nbsp;"`;
exports[`Blocks raw handling pasteHandler ms-word-online 1`] = `"This is a <em>heading</em>&nbsp;<br>This is a <strong>paragraph </strong>with a <a href="https://w.org/" target="_blank" rel="noopener">link</a>.&nbsp;<br>A&nbsp;<br>Bulleted&nbsp;<br>Indented&nbsp;<br>List&nbsp;<br>&nbsp;<br>One&nbsp;<br>Two&nbsp;<br>Three&nbsp;<br><br>One&nbsp;<br>Two&nbsp;<br>Three&nbsp;<br>1&nbsp;<br>2&nbsp;<br>3&nbsp;<br>I&nbsp;<br>II&nbsp;<br>III&nbsp;<br>&nbsp;<br>An image:&nbsp;<br><img src="data:image/jpeg;base64,###">&nbsp;"`;

exports[`Blocks raw handling pasteHandler ms-word-styled 1`] = `"<br><strong>Lorem ipsum dolor sit amet, consectetur adipiscing elit&nbsp;</strong><br><br><br>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque aliquet hendrerit auctor. Nam lobortis, est vel lacinia tincidunt, purus tellus vehicula ex, nec pharetra justo dui sed lorem. Nam congue laoreet massa, quis varius est tincidunt ut."`;

Expand Down Expand Up @@ -74,9 +74,9 @@ exports[`Blocks raw handling pasteHandler should strip windows data 1`] = `
<!-- /wp:paragraph -->"
`;

exports[`Blocks raw handling pasteHandler slack-paragraphs 1`] = `"test with&nbsp;<a target="_blank" href="http://w.org/" rel="noreferrer noopener">link</a><br>a new line<br><br>a new paragraph<br>another new line<br><br>another paragraph"`;
exports[`Blocks raw handling pasteHandler slack-paragraphs 1`] = `"test with&nbsp;<a target="_blank" href="http://w.org/" rel="noopener">link</a><br>a new line<br><br>a new paragraph<br>another new line<br><br>another paragraph"`;

exports[`Blocks raw handling pasteHandler slack-quote 1`] = `"Test with&nbsp;<a target="_blank" href="http://w.org/" rel="noreferrer noopener">link</a>."`;
exports[`Blocks raw handling pasteHandler slack-quote 1`] = `"Test with&nbsp;<a target="_blank" href="http://w.org/" rel="noopener">link</a>."`;

exports[`Blocks raw handling pasteHandler two-images 1`] = `"<img src="http://localhost/wp-content/uploads/2018/01/Dec-08-2017-15-12-24-17-300x137.gif" alt="" width="300" height="137"> <img src="http://localhost/wp-content/uploads/2018/01/Dec-05-2017-17-52-09-9-300x248.gif" alt="" width="300" height="248">"`;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ <h1 class="wp-block-heading">This is a <em>heading</em>&nbsp;</h1>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>This is a <strong>paragraph </strong>with a <a href="https://w.org/" target="_blank" rel="noreferrer noopener">link</a>.&nbsp;</p>
<p>This is a <strong>paragraph </strong>with a <a href="https://w.org/" target="_blank" rel="noopener">link</a>.&nbsp;</p>
<!-- /wp:paragraph -->

<!-- wp:list -->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!-- wp:paragraph -->
<p>test with&nbsp;<a target="_blank" href="http://w.org/" rel="noreferrer noopener">link</a><br>a new line</p>
<p>test with&nbsp;<a target="_blank" href="http://w.org/" rel="noopener">link</a><br>a new line</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
Expand Down
Loading
Loading