diff --git a/docs/reference-guides/core-blocks.md b/docs/reference-guides/core-blocks.md index 3a0a88048e982..c08869db34b48 100644 --- a/docs/reference-guides/core-blocks.md +++ b/docs/reference-guides/core-blocks.md @@ -415,7 +415,7 @@ Create a bulleted or numbered list. ([Source](https://github.com/WordPress/guten - **Name:** core/list - **Category:** text - **Allowed Blocks:** core/list-item -- **Supports:** __unstablePasteTextInline, anchor, color (background, gradients, link, text), interactivity (clientNavigation), spacing (margin, padding), typography (fontSize, lineHeight), ~~className~~, ~~html~~ +- **Supports:** __unstablePasteTextInline, anchor, color (background, gradients, link, text), interactivity (clientNavigation), spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~ - **Attributes:** ordered, placeholder, reversed, start, type, values ## List item diff --git a/lib/blocks.php b/lib/blocks.php index eed9142db436a..679219cc6ff77 100644 --- a/lib/blocks.php +++ b/lib/blocks.php @@ -26,7 +26,6 @@ function gutenberg_reregister_core_block_types() { 'form-submit-button', 'group', 'html', - 'list', 'list-item', 'missing', 'more', @@ -76,6 +75,7 @@ function gutenberg_reregister_core_block_types() { 'heading.php' => 'core/heading', 'latest-comments.php' => 'core/latest-comments', 'latest-posts.php' => 'core/latest-posts', + 'list.php' => 'core/list', 'loginout.php' => 'core/loginout', 'media-text.php' => 'core/media-text', 'navigation.php' => 'core/navigation', diff --git a/packages/block-library/src/heading/test/__snapshots__/transforms.native.js.snap b/packages/block-library/src/heading/test/__snapshots__/transforms.native.js.snap index 4f6512b3f8662..c773f86307771 100644 --- a/packages/block-library/src/heading/test/__snapshots__/transforms.native.js.snap +++ b/packages/block-library/src/heading/test/__snapshots__/transforms.native.js.snap @@ -20,7 +20,7 @@ exports[`Heading block transforms to Group block 1`] = ` exports[`Heading block transforms to List block 1`] = ` " -
-+
- First Item
diff --git a/packages/block-library/src/list/test/edit.native.js b/packages/block-library/src/list/test/edit.native.js index 1f7296db98c8c..a33bce32e5bca 100644 --- a/packages/block-library/src/list/test/edit.native.js +++ b/packages/block-library/src/list/test/edit.native.js @@ -60,7 +60,7 @@ describe( 'List block', () => { it( 'adds one item to the list', async () => { const initialHtml = ` -+
`; @@ -88,17 +88,17 @@ describe( 'List block', () => { it( 'shows different indentation levels', async () => { const initialHtml = ` -
+
- List item 1
- List item 2 -
+
- List item nested 1
- List item nested 2 -
+
- Extra item 1
@@ -140,7 +140,7 @@ describe( 'List block', () => { it( 'changes the indentation level', async () => { const initialHtml = ` -+
- Item 1
@@ -183,9 +183,9 @@ describe( 'List block', () => { it( 'removes the indentation level', async () => { const initialHtml = ` -+
- Item 1 -
@@ -230,7 +230,7 @@ describe( 'List block', () => { it( 'changes to ordered list', async () => { const initialHtml = ` -+
- Item 2
+
- Item 1
@@ -258,7 +258,7 @@ describe( 'List block', () => { it( 'changes to reverse ordered list', async () => { const initialHtml = ` -+
- Item 1
@@ -299,7 +299,7 @@ describe( 'List block', () => { it( 'sets a start value to an ordered list', async () => { const initialHtml = ` -+
- Item 1
@@ -342,7 +342,7 @@ describe( 'List block', () => { it( 'splits empty list items into paragraphs', async () => { // Arrange const initialHtml = ` -+
@@ -370,7 +370,7 @@ describe( 'List block', () => { // Assert expect( getEditorHtml() ).toMatchInlineSnapshot( ` " -
- One
- Two
+
@@ -380,7 +380,7 @@ describe( 'List block', () => { -
- One
+
" @@ -389,7 +389,7 @@ describe( 'List block', () => { it( 'merges paragraphs into list items', async () => { const initialHtml = ` -
- Two
+
@@ -399,7 +399,7 @@ describe( 'List block', () => { -
- One
+
`; @@ -417,7 +417,7 @@ describe( 'List block', () => { // Assert expect( getEditorHtml() ).toMatchInlineSnapshot( ` " -
- Three
+
- One
@@ -435,7 +435,7 @@ describe( 'List block', () => { it( 'merges lists into lists', async () => { // Arrange const initialHtml = ` -+
- One
@@ -445,7 +445,7 @@ describe( 'List block', () => { -+
`; @@ -466,7 +466,7 @@ describe( 'List block', () => { // Assert expect( getEditorHtml() ).toMatchInlineSnapshot( ` " -
- Three
+
- One
@@ -486,7 +486,7 @@ describe( 'List block', () => {A quick brown fox.
-+
`; @@ -527,7 +527,7 @@ describe( 'List block', () => { -
- One
- Two
+
" @@ -539,9 +539,9 @@ describe( 'List block', () => {
- Two
A quick brown fox.
-+
- One -
+
- Two
@@ -591,7 +591,7 @@ describe( 'List block', () => { -+
- Two
diff --git a/packages/block-library/src/list/test/transforms.native.js b/packages/block-library/src/list/test/transforms.native.js index dd8ec5ccd2c77..538d5b7ed0193 100644 --- a/packages/block-library/src/list/test/transforms.native.js +++ b/packages/block-library/src/list/test/transforms.native.js @@ -12,7 +12,7 @@ import { const block = 'List'; const initialHtml = ` -+
- First Item
diff --git a/packages/block-library/src/paragraph/test/__snapshots__/transforms.native.js.snap b/packages/block-library/src/paragraph/test/__snapshots__/transforms.native.js.snap index b0855c02bd0e9..3a2a928b81f5e 100644 --- a/packages/block-library/src/paragraph/test/__snapshots__/transforms.native.js.snap +++ b/packages/block-library/src/paragraph/test/__snapshots__/transforms.native.js.snap @@ -32,7 +32,7 @@ exports[`Paragraph block transforms to Heading block 1`] = ` exports[`Paragraph block transforms to List block 1`] = ` " -+
" diff --git a/post-content.php b/post-content.php index 0bdeb30733f6c..3c9b18087b0e8 100644 --- a/post-content.php +++ b/post-content.php @@ -61,7 +61,7 @@ -
- Example text
+
diff --git a/test/e2e/specs/editor/blocks/list.spec.js b/test/e2e/specs/editor/blocks/list.spec.js index 10f25d6b3609f..7c42ad7989aff 100644 --- a/test/e2e/specs/editor/blocks/list.spec.js +++ b/test/e2e/specs/editor/blocks/list.spec.js @@ -24,7 +24,7 @@ test.describe( 'List (@firefox)', () => { await pageUtils.pressKeys( 'primary+v' ); const copied = ` -
+
- one
@@ -53,7 +53,7 @@ test.describe( 'List (@firefox)', () => { await page.keyboard.type( 'Another list item' ); await expect.poll( editor.getEditedPostContent ).toBe( ` -+
- A list item
@@ -78,7 +78,7 @@ test.describe( 'List (@firefox)', () => { await page.keyboard.type( '* ' ); await expect.poll( editor.getEditedPostContent ).toBe( ` -+
` @@ -97,7 +97,7 @@ test.describe( 'List (@firefox)', () => { await expect.poll( editor.getEditedPostContent ).toBe( ` -
- test
+
` @@ -264,7 +264,7 @@ test.describe( 'List (@firefox)', () => { await expect.poll( editor.getEditedPostContent ).toBe( ` -
- A list item
+
` @@ -283,7 +283,7 @@ test.describe( 'List (@firefox)', () => { await expect.poll( editor.getEditedPostContent ).toBe( ` -
- I’m a list
+
` @@ -309,7 +309,7 @@ test.describe( 'List (@firefox)', () => { await expect.poll( editor.getEditedPostContent ).toBe( ` -
- test
+
- one
@@ -335,7 +335,7 @@ test.describe( 'List (@firefox)', () => { await expect.poll( editor.getEditedPostContent ).toBe( ` -+
- one
@@ -368,7 +368,7 @@ test.describe( 'List (@firefox)', () => { await expect.poll( editor.getEditedPostContent ).toBe( ` -+
- one
@@ -433,7 +433,7 @@ test.describe( 'List (@firefox)', () => { await expect.poll( editor.getEditedPostContent ).toBe( `
...-+
- one
@@ -457,7 +457,7 @@ test.describe( 'List (@firefox)', () => { await expect.poll( editor.getEditedPostContent ).toBe( ` -+
@@ -473,7 +473,7 @@ test.describe( 'List (@firefox)', () => { await expect.poll( editor.getEditedPostContent ).toBe( ` -
- one
+
- one
@@ -498,7 +498,7 @@ test.describe( 'List (@firefox)', () => { await expect.poll( editor.getEditedPostContent ).toBe( ` -+
- one
@@ -516,7 +516,7 @@ test.describe( 'List (@firefox)', () => { await expect.poll( editor.getEditedPostContent ).toBe( ` -+
@@ -526,7 +526,7 @@ test.describe( 'List (@firefox)', () => { -
- one
+
` @@ -541,7 +541,7 @@ test.describe( 'List (@firefox)', () => { await expect.poll( editor.getEditedPostContent ).toBe( ` -
- two
+
- one
@@ -637,7 +637,7 @@ test.describe( 'List (@firefox)', () => { await expect.poll( editor.getEditedPostContent ).toBe( ` -+
@@ -647,7 +647,7 @@ test.describe( 'List (@firefox)', () => { -
- one
+
` @@ -665,9 +665,9 @@ test.describe( 'List (@firefox)', () => { await expect.poll( editor.getEditedPostContent ).toBe( ` -
- two
+
- one -
+
- two
@@ -691,9 +691,9 @@ test.describe( 'List (@firefox)', () => { await expect.poll( editor.getEditedPostContent ).toBe( ` -+
- one -
@@ -708,7 +708,7 @@ test.describe( 'List (@firefox)', () => { await editor.clickBlockToolbarButton( 'Ordered' ); await expect.poll( editor.getEditedPostContent ).toBe( ` -+
+
` @@ -729,9 +729,9 @@ test.describe( 'List (@firefox)', () => { await expect.poll( editor.getEditedPostContent ).toBe( ` -
+
- a -
@@ -754,7 +754,7 @@ test.describe( 'List (@firefox)', () => { await expect.poll( editor.getEditedPostContent ).toBe( `+
- 1
-+
@@ -775,9 +775,9 @@ test.describe( 'List (@firefox)', () => { await expect.poll( editor.getEditedPostContent ).toBe( ` -
- aaa
+
- a -
@@ -789,7 +789,7 @@ test.describe( 'List (@firefox)', () => { await expect.poll( editor.getEditedPostContent ).toBe( ` -+
- 1
+
- a
@@ -812,11 +812,11 @@ test.describe( 'List (@firefox)', () => { await expect.poll( editor.getEditedPostContent ).toBe( ` -+
- a -
+
- 1 -
@@ -830,9 +830,9 @@ test.describe( 'List (@firefox)', () => { await expect.poll( editor.getEditedPostContent ).toBe( ` -+
- i
+
- a -
+
- 1
@@ -851,9 +851,9 @@ test.describe( 'List (@firefox)', () => { await expect.poll( editor.getEditedPostContent ).toBe( ` -+
- a -
@@ -882,11 +882,11 @@ test.describe( 'List (@firefox)', () => { await expect.poll( editor.getEditedPostContent ).toBe( ` -+
- 1
+
- a -
+
- b -
@@ -901,13 +901,13 @@ test.describe( 'List (@firefox)', () => { await expect.poll( editor.getEditedPostContent ).toBe( ` -+
- c
+
- a
- b -
@@ -927,7 +927,7 @@ test.describe( 'List (@firefox)', () => { await expect.poll( editor.getEditedPostContent ).toBe( ` -+
- c
+
` @@ -950,7 +950,7 @@ test.describe( 'List (@firefox)', () => { await expect.poll( editor.getEditedPostContent ).toBe( ` -
- a
+
- a
@@ -981,11 +981,11 @@ test.describe( 'List (@firefox)', () => { await expect.poll( editor.getEditedPostContent ).toBe( ` -+
- 1 -
+
- a -
@@ -1000,9 +1000,9 @@ test.describe( 'List (@firefox)', () => { await expect.poll( editor.getEditedPostContent ).toBe( ` -+
- i
+
- 1 -
+
- a
@@ -1018,9 +1018,9 @@ test.describe( 'List (@firefox)', () => { await expect.poll( editor.getEditedPostContent ).toBe( ` -+
- 1 -
@@ -1036,9 +1036,9 @@ test.describe( 'List (@firefox)', () => { await expect.poll( editor.getEditedPostContent ).toBe( ` -+
- a
+
- 1 -
@@ -1051,7 +1051,7 @@ test.describe( 'List (@firefox)', () => { await expect.poll( editor.getEditedPostContent ).toBe( ` -+
- a
+
- 1
@@ -1065,7 +1065,7 @@ test.describe( 'List (@firefox)', () => { await expect.poll( editor.getEditedPostContent ).toBe( ` -+
` @@ -1098,13 +1098,13 @@ test.describe( 'List (@firefox)', () => { await expect.poll( editor.getEditedPostContent ).toBe( ` -
- 1
+
- 1
- 2 -
@@ -1128,7 +1128,7 @@ test.describe( 'List (@firefox)', () => { await expect.poll( editor.getEditedPostContent ).toBe( ` -+
- a
+
- 1
@@ -1182,9 +1182,9 @@ test.describe( 'List (@firefox)', () => { await expect.poll( editor.getEditedPostContent ).toBe( ` -+
- 1 -
+
- 2
@@ -1208,9 +1208,9 @@ test.describe( 'List (@firefox)', () => { await expect.poll( editor.getEditedPostContent ).toBe( ` -+
- 1 -
+
- 2
@@ -1243,7 +1243,7 @@ test.describe( 'List (@firefox)', () => { -+
` @@ -1267,7 +1267,7 @@ test.describe( 'List (@firefox)', () => { await expect.poll( editor.getEditedPostContent ).toBe( ` -
- 2
+
- 1
@@ -1299,7 +1299,7 @@ test.describe( 'List (@firefox)', () => { await expect.poll( editor.getEditedPostContent ).toBe( ` -+
- a
@@ -1325,7 +1325,7 @@ test.describe( 'List (@firefox)', () => { // Add empty list block await page.getByPlaceholder( 'Start writing with text or HTML' ) .fill( ` -+
` ); @@ -1335,7 +1335,7 @@ test.describe( 'List (@firefox)', () => { // Verify no WSOD and content is proper. expect( await editor.getEditedPostContent() ).toBe( ` -
+
` ); @@ -1356,7 +1356,7 @@ test.describe( 'List (@firefox)', () => { await page.keyboard.type( '* c' ); await expect.poll( editor.getEditedPostContent ).toBe( ` -
+
- a
@@ -1366,7 +1366,7 @@ test.describe( 'List (@firefox)', () => { -+
` ); @@ -1375,7 +1375,7 @@ test.describe( 'List (@firefox)', () => { await page.keyboard.press( 'Backspace' ); await expect.poll( editor.getEditedPostContent ).toBe( ` -
- c
+
- a
@@ -1398,7 +1398,7 @@ test.describe( 'List (@firefox)', () => { await page.keyboard.type( '1' ); expect( await editor.getEditedPostContent() ).toBe( ` -+
@@ -1439,7 +1439,7 @@ test.describe( 'List (@firefox)', () => { await page.getByRole( 'menuitem', { name: 'List' } ).click(); expect( await editor.getEditedPostContent() ).toBe( ` -
+
- 1
diff --git a/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-paste-preformatted-in-list-1-chromium.txt b/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-paste-preformatted-in-list-1-chromium.txt index 002e7a1920028..d46df0dfb55d4 100644 --- a/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-paste-preformatted-in-list-1-chromium.txt +++ b/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-paste-preformatted-in-list-1-chromium.txt @@ -1,5 +1,5 @@ -+
\ No newline at end of file diff --git a/test/e2e/specs/editor/various/writing-flow.spec.js b/test/e2e/specs/editor/various/writing-flow.spec.js index 91aafa43690fd..2dee26255c103 100644 --- a/test/e2e/specs/editor/various/writing-flow.spec.js +++ b/test/e2e/specs/editor/various/writing-flow.spec.js @@ -356,7 +356,7 @@ test.describe( 'Writing Flow (@firefox, @webkit)', () => { await page.keyboard.type( 'a' ); await page.keyboard.press( 'Backspace' ); await expect.poll( editor.getEditedPostContent ).toBe( ` -
- xy
+
` ); diff --git a/test/integration/__snapshots__/blocks-raw-handling.test.js.snap b/test/integration/__snapshots__/blocks-raw-handling.test.js.snap index b810a20b4d7c5..589eef78f34e2 100644 --- a/test/integration/__snapshots__/blocks-raw-handling.test.js.snap +++ b/test/integration/__snapshots__/blocks-raw-handling.test.js.snap @@ -135,7 +135,7 @@ exports[`rawHandler should convert HTML post to blocks with minimal content chan -
+
@@ -177,9 +177,9 @@ exports[`rawHandler should convert a caption shortcode with link 1`] = ` exports[`rawHandler should convert a list with attributes 1`] = ` " -
- Item
+
- 1 -
diff --git a/test/integration/blocks-raw-handling.test.js b/test/integration/blocks-raw-handling.test.js index 5fb7123f9b820..81d3b7053468b 100644 --- a/test/integration/blocks-raw-handling.test.js +++ b/test/integration/blocks-raw-handling.test.js @@ -177,7 +177,7 @@ describe( 'Blocks raw handling', () => { .join( '' ); expect( filtered ).toMatchInlineSnapshot( ` - "+
- 1
+ "
- one
@@ -202,7 +202,7 @@ describe( 'Blocks raw handling', () => { .join( '' ); expect( filtered ).toMatchInlineSnapshot( ` - "+ "
- one
@@ -318,7 +318,7 @@ describe( 'Blocks raw handling', () => { .join( '' ); expect( filtered ).toMatchInlineSnapshot( ` - "+ "
- One
diff --git a/test/integration/fixtures/blocks/core__list__deprecated-v0.serialized.html b/test/integration/fixtures/blocks/core__list__deprecated-v0.serialized.html index fa50fb5db17e7..ad0919beb9bde 100644 --- a/test/integration/fixtures/blocks/core__list__deprecated-v0.serialized.html +++ b/test/integration/fixtures/blocks/core__list__deprecated-v0.serialized.html @@ -1,5 +1,5 @@ -+
- one
diff --git a/test/integration/fixtures/blocks/core__list__deprecated-v1-nested.serialized.html b/test/integration/fixtures/blocks/core__list__deprecated-v1-nested.serialized.html index 61e33d3dc0e15..39a3efa2eabed 100644 --- a/test/integration/fixtures/blocks/core__list__deprecated-v1-nested.serialized.html +++ b/test/integration/fixtures/blocks/core__list__deprecated-v1-nested.serialized.html @@ -1,9 +1,9 @@ -+
- Item -
+
- Item -
@@ -11,7 +11,7 @@+
- Item -
@@ -19,7 +19,7 @@+
- Item -
diff --git a/test/integration/fixtures/blocks/core__list__deprecated-v1.serialized.html b/test/integration/fixtures/blocks/core__list__deprecated-v1.serialized.html index c09708d51db0b..4d74394771fcb 100644 --- a/test/integration/fixtures/blocks/core__list__deprecated-v1.serialized.html +++ b/test/integration/fixtures/blocks/core__list__deprecated-v1.serialized.html @@ -1,5 +1,5 @@ -+
+
- Text & Headings
diff --git a/test/integration/fixtures/blocks/core__list__deprecated-v2.serialized.html b/test/integration/fixtures/blocks/core__list__deprecated-v2.serialized.html index 44c97ca29209c..6fdf3ad84feeb 100644 --- a/test/integration/fixtures/blocks/core__list__deprecated-v2.serialized.html +++ b/test/integration/fixtures/blocks/core__list__deprecated-v2.serialized.html @@ -1,5 +1,5 @@ -+
diff --git a/test/integration/fixtures/blocks/core__list__deprecated-v3-css-class.html b/test/integration/fixtures/blocks/core__list__deprecated-v3-css-class.html new file mode 100644 index 0000000000000..aef6bf669f2c9 --- /dev/null +++ b/test/integration/fixtures/blocks/core__list__deprecated-v3-css-class.html @@ -0,0 +1,3 @@ + +
- Item 1
+ diff --git a/test/integration/fixtures/blocks/core__list__deprecated-v3-css-class.json b/test/integration/fixtures/blocks/core__list__deprecated-v3-css-class.json new file mode 100644 index 0000000000000..80cd87e4eb69e --- /dev/null +++ b/test/integration/fixtures/blocks/core__list__deprecated-v3-css-class.json @@ -0,0 +1,60 @@ +[ + { + "name": "core/list", + "isValid": true, + "attributes": { + "ordered": false, + "values": "" + }, + "innerBlocks": [ + { + "name": "core/list-item", + "isValid": true, + "attributes": { + "content": "Text & Headings" + }, + "innerBlocks": [] + }, + { + "name": "core/list-item", + "isValid": true, + "attributes": { + "content": "Images & Videos" + }, + "innerBlocks": [] + }, + { + "name": "core/list-item", + "isValid": true, + "attributes": { + "content": "Galleries" + }, + "innerBlocks": [] + }, + { + "name": "core/list-item", + "isValid": true, + "attributes": { + "content": "Embeds, like YouTube, Tweets, or other WordPress posts." + }, + "innerBlocks": [] + }, + { + "name": "core/list-item", + "isValid": true, + "attributes": { + "content": "Layout blocks, like Buttons, Hero Images, Separators, etc." + }, + "innerBlocks": [] + }, + { + "name": "core/list-item", + "isValid": true, + "attributes": { + "content": "And Lists like this one of course :)" + }, + "innerBlocks": [] + } + ] + } +] diff --git a/test/integration/fixtures/blocks/core__list__deprecated-v3-css-class.parsed.json b/test/integration/fixtures/blocks/core__list__deprecated-v3-css-class.parsed.json new file mode 100644 index 0000000000000..427f4c3a975cf --- /dev/null +++ b/test/integration/fixtures/blocks/core__list__deprecated-v3-css-class.parsed.json @@ -0,0 +1,11 @@ +[ + { + "blockName": "core/list", + "attrs": {}, + "innerBlocks": [], + "innerHTML": "\n
- Text & Headings
- Images & Videos
- Galleries
- Embeds, like YouTube, Tweets, or other WordPress posts.
- Layout blocks, like Buttons, Hero Images, Separators, etc.
- And Lists like this one of course :)
\n", + "innerContent": [ + "\n
- Text & Headings
- Images & Videos
- Galleries
- Embeds, like YouTube, Tweets, or other WordPress posts.
- Layout blocks, like Buttons, Hero Images, Separators, etc.
- And Lists like this one of course :)
\n" + ] + } +] diff --git a/test/integration/fixtures/blocks/core__list__deprecated-v3-css-class.serialized.html b/test/integration/fixtures/blocks/core__list__deprecated-v3-css-class.serialized.html new file mode 100644 index 0000000000000..4d74394771fcb --- /dev/null +++ b/test/integration/fixtures/blocks/core__list__deprecated-v3-css-class.serialized.html @@ -0,0 +1,25 @@ + +
- Text & Headings
- Images & Videos
- Galleries
- Embeds, like YouTube, Tweets, or other WordPress posts.
- Layout blocks, like Buttons, Hero Images, Separators, etc.
- And Lists like this one of course :)
+
+ diff --git a/test/integration/fixtures/blocks/core__list__ul.html b/test/integration/fixtures/blocks/core__list__ul.html index c09708d51db0b..4d74394771fcb 100644 --- a/test/integration/fixtures/blocks/core__list__ul.html +++ b/test/integration/fixtures/blocks/core__list__ul.html @@ -1,5 +1,5 @@ -- Text & Headings
+ + + +- Images & Videos
+ + + +- Galleries
+ + + +- Embeds, like YouTube, Tweets, or other WordPress posts.
+ + + +- Layout blocks, like Buttons, Hero Images, Separators, etc.
+ + + +- And Lists like this one of course :)
++
- Text & Headings
diff --git a/test/integration/fixtures/blocks/core__list__ul.parsed.json b/test/integration/fixtures/blocks/core__list__ul.parsed.json index 2853bc5558ebe..4639b007c777b 100644 --- a/test/integration/fixtures/blocks/core__list__ul.parsed.json +++ b/test/integration/fixtures/blocks/core__list__ul.parsed.json @@ -52,9 +52,9 @@ ] } ], - "innerHTML": "\n\n\n\n\n\n\n\n\n\n\n
\n", + "innerHTML": "\n\n\n\n\n\n\n\n\n\n\n
\n", "innerContent": [ - "\n", + "\n
", null, "\n\n", null, diff --git a/test/integration/fixtures/blocks/core__list__ul.serialized.html b/test/integration/fixtures/blocks/core__list__ul.serialized.html index c09708d51db0b..4d74394771fcb 100644 --- a/test/integration/fixtures/blocks/core__list__ul.serialized.html +++ b/test/integration/fixtures/blocks/core__list__ul.serialized.html @@ -1,5 +1,5 @@ -
+
- Text & Headings
diff --git a/test/integration/fixtures/documents/apple-out.html b/test/integration/fixtures/documents/apple-out.html index afada0ee3136e..d6112309af9f0 100644 --- a/test/integration/fixtures/documents/apple-out.html +++ b/test/integration/fixtures/documents/apple-out.html @@ -11,13 +11,13 @@ -+
- A
- Bulleted -
@@ -29,7 +29,7 @@ -+
- Indented
+
- One
diff --git a/test/integration/fixtures/documents/evernote-out.html b/test/integration/fixtures/documents/evernote-out.html index a5ff509c7a173..2a7212f2e29b3 100644 --- a/test/integration/fixtures/documents/evernote-out.html +++ b/test/integration/fixtures/documents/evernote-out.html @@ -7,13 +7,13 @@ -+
- An
- Unordered -
@@ -25,13 +25,13 @@ -+
- Indented
+
- One
- Two -
diff --git a/test/integration/fixtures/documents/google-docs-list-only-out.html b/test/integration/fixtures/documents/google-docs-list-only-out.html index 642dc168bb5bb..ec14d44d2b922 100644 --- a/test/integration/fixtures/documents/google-docs-list-only-out.html +++ b/test/integration/fixtures/documents/google-docs-list-only-out.html @@ -1,7 +1,7 @@ -+
- Indented
+
- My first list item -
+
- A sub list item
diff --git a/test/integration/fixtures/documents/google-docs-out.html b/test/integration/fixtures/documents/google-docs-out.html index f2ec15cf4f92a..3ee7d25875abc 100644 --- a/test/integration/fixtures/documents/google-docs-out.html +++ b/test/integration/fixtures/documents/google-docs-out.html @@ -11,13 +11,13 @@This is a heading
-+
- A
- Bulleted -
@@ -29,7 +29,7 @@+
- Indented
This is a heading
-+
- One
diff --git a/test/integration/fixtures/documents/google-docs-with-comments-out.html b/test/integration/fixtures/documents/google-docs-with-comments-out.html index f2ec15cf4f92a..3ee7d25875abc 100644 --- a/test/integration/fixtures/documents/google-docs-with-comments-out.html +++ b/test/integration/fixtures/documents/google-docs-with-comments-out.html @@ -11,13 +11,13 @@This is a heading
-+
- A
- Bulleted -
@@ -29,7 +29,7 @@+
- Indented
This is a heading
-+
- One
diff --git a/test/integration/fixtures/documents/markdown-out.html b/test/integration/fixtures/documents/markdown-out.html index ed57e4e05e717..9ed72f6d3ef6d 100644 --- a/test/integration/fixtures/documents/markdown-out.html +++ b/test/integration/fixtures/documents/markdown-out.html @@ -15,13 +15,13 @@Lists
-+
- A
- Bulleted -
@@ -33,7 +33,7 @@+
- Indented
Lists
-+
- One
diff --git a/test/integration/fixtures/documents/ms-word-list-out.html b/test/integration/fixtures/documents/ms-word-list-out.html index f57946f64bc98..2e55413b159a6 100644 --- a/test/integration/fixtures/documents/ms-word-list-out.html +++ b/test/integration/fixtures/documents/ms-word-list-out.html @@ -7,7 +7,7 @@This is a headline?
-+
- One
diff --git a/test/integration/fixtures/documents/ms-word-online-out.html b/test/integration/fixtures/documents/ms-word-online-out.html index 2d8314bbf0fd6..13698a929d9b1 100644 --- a/test/integration/fixtures/documents/ms-word-online-out.html +++ b/test/integration/fixtures/documents/ms-word-online-out.html @@ -7,7 +7,7 @@ -+
- A
@@ -25,7 +25,7 @@ -+
- One
diff --git a/test/integration/fixtures/documents/ms-word-out.html b/test/integration/fixtures/documents/ms-word-out.html index 89eaa6f3bcd16..81b82b5f9502f 100644 --- a/test/integration/fixtures/documents/ms-word-out.html +++ b/test/integration/fixtures/documents/ms-word-out.html @@ -19,13 +19,13 @@This is a heading level 2
-+
- A
- Bulleted -
@@ -37,7 +37,7 @@+
- Indented
This is a heading level 2
-+
- One
diff --git a/test/native/integration/blocks-raw-handling.native.js b/test/native/integration/blocks-raw-handling.native.js index 5f21ca035fbf9..6fae0e72be0ca 100644 --- a/test/native/integration/blocks-raw-handling.native.js +++ b/test/native/integration/blocks-raw-handling.native.js @@ -187,7 +187,7 @@ describe( 'Blocks raw handling', () => { .join( '' ); expect( filtered ).toMatchInlineSnapshot( ` - "+ "
- one
@@ -212,7 +212,7 @@ describe( 'Blocks raw handling', () => { .join( '' ); expect( filtered ).toMatchInlineSnapshot( ` - "+ "