Skip to content

Commit c77be3b

Browse files
committed
Parsing: Replace server serialization by parsed outerHTML
1 parent 1709207 commit c77be3b

File tree

71 files changed

+171
-242
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+171
-242
lines changed

blocks/api/post.pegjs

+10-4
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,8 @@ Tag_More
183183
return array(
184184
'blockName' => 'core/more',
185185
'attrs' => $attrs,
186-
'innerHTML' => ''
186+
'innerHTML' => '',
187+
'outerHTML' => $this->text(),
187188
);
188189
?> **/
189190
return {
@@ -192,7 +193,8 @@ Tag_More
192193
customText: customText || undefined,
193194
noTeaser: !! noTeaser
194195
},
195-
innerHTML: ''
196+
innerHTML: '',
197+
outerHTML: text()
196198
}
197199
}
198200

@@ -208,14 +210,16 @@ Block_Void
208210
'attrs' => $attrs,
209211
'innerBlocks' => array(),
210212
'innerHTML' => '',
213+
'outerHTML' => $this->text(),
211214
);
212215
?> **/
213216

214217
return {
215218
blockName: blockName,
216219
attrs: attrs,
217220
innerBlocks: [],
218-
innerHTML: ''
221+
innerHTML: '',
222+
outerHTML: text()
219223
};
220224
}
221225

@@ -230,6 +234,7 @@ Block_Balanced
230234
'attrs' => $s['attrs'],
231235
'innerBlocks' => $innerBlocks,
232236
'innerHTML' => implode( '', $innerHTML ),
237+
'outerHTML' => $this->text(),
233238
);
234239
?> **/
235240

@@ -241,7 +246,8 @@ Block_Balanced
241246
blockName: s.blockName,
242247
attrs: s.attrs,
243248
innerBlocks: innerBlocks,
244-
innerHTML: innerHTML.join( '' )
249+
innerHTML: innerHTML.join( '' ),
250+
outerHTML: text()
245251
};
246252
}
247253

blocks/test/fixtures/core-embed__animoto.parsed.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"url": "https://animoto.com/"
66
},
77
"innerBlocks": [],
8-
"innerHTML": "\n<figure class=\"wp-block-embed-animoto\">\n https://animoto.com/\n <figcaption>Embedded content from animoto</figcaption>\n</figure>\n"
8+
"innerHTML": "\n<figure class=\"wp-block-embed-animoto\">\n https://animoto.com/\n <figcaption>Embedded content from animoto</figcaption>\n</figure>\n",
9+
"outerHTML": "<!-- wp:core-embed/animoto {\"url\":\"https://animoto.com/\"} -->\n<figure class=\"wp-block-embed-animoto\">\n https://animoto.com/\n <figcaption>Embedded content from animoto</figcaption>\n</figure>\n<!-- /wp:core-embed/animoto -->"
910
},
1011
{
1112
"attrs": {},

blocks/test/fixtures/core-embed__cloudup.parsed.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"url": "https://cloudup.com/"
66
},
77
"innerBlocks": [],
8-
"innerHTML": "\n<figure class=\"wp-block-embed-cloudup\">\n https://cloudup.com/\n <figcaption>Embedded content from cloudup</figcaption>\n</figure>\n"
8+
"innerHTML": "\n<figure class=\"wp-block-embed-cloudup\">\n https://cloudup.com/\n <figcaption>Embedded content from cloudup</figcaption>\n</figure>\n",
9+
"outerHTML": "<!-- wp:core-embed/cloudup {\"url\":\"https://cloudup.com/\"} -->\n<figure class=\"wp-block-embed-cloudup\">\n https://cloudup.com/\n <figcaption>Embedded content from cloudup</figcaption>\n</figure>\n<!-- /wp:core-embed/cloudup -->"
910
},
1011
{
1112
"attrs": {},

blocks/test/fixtures/core-embed__collegehumor.parsed.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"url": "https://collegehumor.com/"
66
},
77
"innerBlocks": [],
8-
"innerHTML": "\n<figure class=\"wp-block-embed-collegehumor\">\n https://collegehumor.com/\n <figcaption>Embedded content from collegehumor</figcaption>\n</figure>\n"
8+
"innerHTML": "\n<figure class=\"wp-block-embed-collegehumor\">\n https://collegehumor.com/\n <figcaption>Embedded content from collegehumor</figcaption>\n</figure>\n",
9+
"outerHTML": "<!-- wp:core-embed/collegehumor {\"url\":\"https://collegehumor.com/\"} -->\n<figure class=\"wp-block-embed-collegehumor\">\n https://collegehumor.com/\n <figcaption>Embedded content from collegehumor</figcaption>\n</figure>\n<!-- /wp:core-embed/collegehumor -->"
910
},
1011
{
1112
"attrs": {},

blocks/test/fixtures/core-embed__dailymotion.parsed.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"url": "https://dailymotion.com/"
66
},
77
"innerBlocks": [],
8-
"innerHTML": "\n<figure class=\"wp-block-embed-dailymotion\">\n https://dailymotion.com/\n <figcaption>Embedded content from dailymotion</figcaption>\n</figure>\n"
8+
"innerHTML": "\n<figure class=\"wp-block-embed-dailymotion\">\n https://dailymotion.com/\n <figcaption>Embedded content from dailymotion</figcaption>\n</figure>\n",
9+
"outerHTML": "<!-- wp:core-embed/dailymotion {\"url\":\"https://dailymotion.com/\"} -->\n<figure class=\"wp-block-embed-dailymotion\">\n https://dailymotion.com/\n <figcaption>Embedded content from dailymotion</figcaption>\n</figure>\n<!-- /wp:core-embed/dailymotion -->"
910
},
1011
{
1112
"attrs": {},

blocks/test/fixtures/core-embed__facebook.parsed.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"url": "https://facebook.com/"
66
},
77
"innerBlocks": [],
8-
"innerHTML": "\n<figure class=\"wp-block-embed-facebook\">\n https://facebook.com/\n <figcaption>Embedded content from facebook</figcaption>\n</figure>\n"
8+
"innerHTML": "\n<figure class=\"wp-block-embed-facebook\">\n https://facebook.com/\n <figcaption>Embedded content from facebook</figcaption>\n</figure>\n",
9+
"outerHTML": "<!-- wp:core-embed/facebook {\"url\":\"https://facebook.com/\"} -->\n<figure class=\"wp-block-embed-facebook\">\n https://facebook.com/\n <figcaption>Embedded content from facebook</figcaption>\n</figure>\n<!-- /wp:core-embed/facebook -->"
910
},
1011
{
1112
"attrs": {},

blocks/test/fixtures/core-embed__flickr.parsed.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"url": "https://flickr.com/"
66
},
77
"innerBlocks": [],
8-
"innerHTML": "\n<figure class=\"wp-block-embed-flickr\">\n https://flickr.com/\n <figcaption>Embedded content from flickr</figcaption>\n</figure>\n"
8+
"innerHTML": "\n<figure class=\"wp-block-embed-flickr\">\n https://flickr.com/\n <figcaption>Embedded content from flickr</figcaption>\n</figure>\n",
9+
"outerHTML": "<!-- wp:core-embed/flickr {\"url\":\"https://flickr.com/\"} -->\n<figure class=\"wp-block-embed-flickr\">\n https://flickr.com/\n <figcaption>Embedded content from flickr</figcaption>\n</figure>\n<!-- /wp:core-embed/flickr -->"
910
},
1011
{
1112
"attrs": {},

blocks/test/fixtures/core-embed__funnyordie.parsed.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"url": "https://funnyordie.com/"
66
},
77
"innerBlocks": [],
8-
"innerHTML": "\n<figure class=\"wp-block-embed-funnyordie\">\n https://funnyordie.com/\n <figcaption>Embedded content from funnyordie</figcaption>\n</figure>\n"
8+
"innerHTML": "\n<figure class=\"wp-block-embed-funnyordie\">\n https://funnyordie.com/\n <figcaption>Embedded content from funnyordie</figcaption>\n</figure>\n",
9+
"outerHTML": "<!-- wp:core-embed/funnyordie {\"url\":\"https://funnyordie.com/\"} -->\n<figure class=\"wp-block-embed-funnyordie\">\n https://funnyordie.com/\n <figcaption>Embedded content from funnyordie</figcaption>\n</figure>\n<!-- /wp:core-embed/funnyordie -->"
910
},
1011
{
1112
"attrs": {},

blocks/test/fixtures/core-embed__hulu.parsed.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"url": "https://hulu.com/"
66
},
77
"innerBlocks": [],
8-
"innerHTML": "\n<figure class=\"wp-block-embed-hulu\">\n https://hulu.com/\n <figcaption>Embedded content from hulu</figcaption>\n</figure>\n"
8+
"innerHTML": "\n<figure class=\"wp-block-embed-hulu\">\n https://hulu.com/\n <figcaption>Embedded content from hulu</figcaption>\n</figure>\n",
9+
"outerHTML": "<!-- wp:core-embed/hulu {\"url\":\"https://hulu.com/\"} -->\n<figure class=\"wp-block-embed-hulu\">\n https://hulu.com/\n <figcaption>Embedded content from hulu</figcaption>\n</figure>\n<!-- /wp:core-embed/hulu -->"
910
},
1011
{
1112
"attrs": {},

blocks/test/fixtures/core-embed__imgur.parsed.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"url": "https://imgur.com/"
66
},
77
"innerBlocks": [],
8-
"innerHTML": "\n<figure class=\"wp-block-embed-imgur\">\n https://imgur.com/\n <figcaption>Embedded content from imgur</figcaption>\n</figure>\n"
8+
"innerHTML": "\n<figure class=\"wp-block-embed-imgur\">\n https://imgur.com/\n <figcaption>Embedded content from imgur</figcaption>\n</figure>\n",
9+
"outerHTML": "<!-- wp:core-embed/imgur {\"url\":\"https://imgur.com/\"} -->\n<figure class=\"wp-block-embed-imgur\">\n https://imgur.com/\n <figcaption>Embedded content from imgur</figcaption>\n</figure>\n<!-- /wp:core-embed/imgur -->"
910
},
1011
{
1112
"attrs": {},

blocks/test/fixtures/core-embed__instagram.parsed.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"url": "https://instagram.com/"
66
},
77
"innerBlocks": [],
8-
"innerHTML": "\n<figure class=\"wp-block-embed-instagram\">\n https://instagram.com/\n <figcaption>Embedded content from instagram</figcaption>\n</figure>\n"
8+
"innerHTML": "\n<figure class=\"wp-block-embed-instagram\">\n https://instagram.com/\n <figcaption>Embedded content from instagram</figcaption>\n</figure>\n",
9+
"outerHTML": "<!-- wp:core-embed/instagram {\"url\":\"https://instagram.com/\"} -->\n<figure class=\"wp-block-embed-instagram\">\n https://instagram.com/\n <figcaption>Embedded content from instagram</figcaption>\n</figure>\n<!-- /wp:core-embed/instagram -->"
910
},
1011
{
1112
"attrs": {},

blocks/test/fixtures/core-embed__issuu.parsed.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"url": "https://issuu.com/"
66
},
77
"innerBlocks": [],
8-
"innerHTML": "\n<figure class=\"wp-block-embed-issuu\">\n https://issuu.com/\n <figcaption>Embedded content from issuu</figcaption>\n</figure>\n"
8+
"innerHTML": "\n<figure class=\"wp-block-embed-issuu\">\n https://issuu.com/\n <figcaption>Embedded content from issuu</figcaption>\n</figure>\n",
9+
"outerHTML": "<!-- wp:core-embed/issuu {\"url\":\"https://issuu.com/\"} -->\n<figure class=\"wp-block-embed-issuu\">\n https://issuu.com/\n <figcaption>Embedded content from issuu</figcaption>\n</figure>\n<!-- /wp:core-embed/issuu -->"
910
},
1011
{
1112
"attrs": {},

blocks/test/fixtures/core-embed__kickstarter.parsed.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"url": "https://kickstarter.com/"
66
},
77
"innerBlocks": [],
8-
"innerHTML": "\n<figure class=\"wp-block-embed-kickstarter\">\n https://kickstarter.com/\n <figcaption>Embedded content from kickstarter</figcaption>\n</figure>\n"
8+
"innerHTML": "\n<figure class=\"wp-block-embed-kickstarter\">\n https://kickstarter.com/\n <figcaption>Embedded content from kickstarter</figcaption>\n</figure>\n",
9+
"outerHTML": "<!-- wp:core-embed/kickstarter {\"url\":\"https://kickstarter.com/\"} -->\n<figure class=\"wp-block-embed-kickstarter\">\n https://kickstarter.com/\n <figcaption>Embedded content from kickstarter</figcaption>\n</figure>\n<!-- /wp:core-embed/kickstarter -->"
910
},
1011
{
1112
"attrs": {},

blocks/test/fixtures/core-embed__meetup-com.parsed.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"url": "https://meetup.com/"
66
},
77
"innerBlocks": [],
8-
"innerHTML": "\n<figure class=\"wp-block-embed-meetup-com\">\n https://meetup.com/\n <figcaption>Embedded content from meetup-com</figcaption>\n</figure>\n"
8+
"innerHTML": "\n<figure class=\"wp-block-embed-meetup-com\">\n https://meetup.com/\n <figcaption>Embedded content from meetup-com</figcaption>\n</figure>\n",
9+
"outerHTML": "<!-- wp:core-embed/meetup-com {\"url\":\"https://meetup.com/\"} -->\n<figure class=\"wp-block-embed-meetup-com\">\n https://meetup.com/\n <figcaption>Embedded content from meetup-com</figcaption>\n</figure>\n<!-- /wp:core-embed/meetup-com -->"
910
},
1011
{
1112
"attrs": {},

blocks/test/fixtures/core-embed__mixcloud.parsed.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"url": "https://mixcloud.com/"
66
},
77
"innerBlocks": [],
8-
"innerHTML": "\n<figure class=\"wp-block-embed-mixcloud\">\n https://mixcloud.com/\n <figcaption>Embedded content from mixcloud</figcaption>\n</figure>\n"
8+
"innerHTML": "\n<figure class=\"wp-block-embed-mixcloud\">\n https://mixcloud.com/\n <figcaption>Embedded content from mixcloud</figcaption>\n</figure>\n",
9+
"outerHTML": "<!-- wp:core-embed/mixcloud {\"url\":\"https://mixcloud.com/\"} -->\n<figure class=\"wp-block-embed-mixcloud\">\n https://mixcloud.com/\n <figcaption>Embedded content from mixcloud</figcaption>\n</figure>\n<!-- /wp:core-embed/mixcloud -->"
910
},
1011
{
1112
"attrs": {},

blocks/test/fixtures/core-embed__photobucket.parsed.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"url": "https://photobucket.com/"
66
},
77
"innerBlocks": [],
8-
"innerHTML": "\n<figure class=\"wp-block-embed-photobucket\">\n https://photobucket.com/\n <figcaption>Embedded content from photobucket</figcaption>\n</figure>\n"
8+
"innerHTML": "\n<figure class=\"wp-block-embed-photobucket\">\n https://photobucket.com/\n <figcaption>Embedded content from photobucket</figcaption>\n</figure>\n",
9+
"outerHTML": "<!-- wp:core-embed/photobucket {\"url\":\"https://photobucket.com/\"} -->\n<figure class=\"wp-block-embed-photobucket\">\n https://photobucket.com/\n <figcaption>Embedded content from photobucket</figcaption>\n</figure>\n<!-- /wp:core-embed/photobucket -->"
910
},
1011
{
1112
"attrs": {},

blocks/test/fixtures/core-embed__polldaddy.parsed.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"url": "https://polldaddy.com/"
66
},
77
"innerBlocks": [],
8-
"innerHTML": "\n<figure class=\"wp-block-embed-polldaddy\">\n https://polldaddy.com/\n <figcaption>Embedded content from polldaddy</figcaption>\n</figure>\n"
8+
"innerHTML": "\n<figure class=\"wp-block-embed-polldaddy\">\n https://polldaddy.com/\n <figcaption>Embedded content from polldaddy</figcaption>\n</figure>\n",
9+
"outerHTML": "<!-- wp:core-embed/polldaddy {\"url\":\"https://polldaddy.com/\"} -->\n<figure class=\"wp-block-embed-polldaddy\">\n https://polldaddy.com/\n <figcaption>Embedded content from polldaddy</figcaption>\n</figure>\n<!-- /wp:core-embed/polldaddy -->"
910
},
1011
{
1112
"attrs": {},

blocks/test/fixtures/core-embed__reddit.parsed.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"url": "https://reddit.com/"
66
},
77
"innerBlocks": [],
8-
"innerHTML": "\n<figure class=\"wp-block-embed-reddit\">\n https://reddit.com/\n <figcaption>Embedded content from reddit</figcaption>\n</figure>\n"
8+
"innerHTML": "\n<figure class=\"wp-block-embed-reddit\">\n https://reddit.com/\n <figcaption>Embedded content from reddit</figcaption>\n</figure>\n",
9+
"outerHTML": "<!-- wp:core-embed/reddit {\"url\":\"https://reddit.com/\"} -->\n<figure class=\"wp-block-embed-reddit\">\n https://reddit.com/\n <figcaption>Embedded content from reddit</figcaption>\n</figure>\n<!-- /wp:core-embed/reddit -->"
910
},
1011
{
1112
"attrs": {},

blocks/test/fixtures/core-embed__reverbnation.parsed.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"url": "https://reverbnation.com/"
66
},
77
"innerBlocks": [],
8-
"innerHTML": "\n<figure class=\"wp-block-embed-reverbnation\">\n https://reverbnation.com/\n <figcaption>Embedded content from reverbnation</figcaption>\n</figure>\n"
8+
"innerHTML": "\n<figure class=\"wp-block-embed-reverbnation\">\n https://reverbnation.com/\n <figcaption>Embedded content from reverbnation</figcaption>\n</figure>\n",
9+
"outerHTML": "<!-- wp:core-embed/reverbnation {\"url\":\"https://reverbnation.com/\"} -->\n<figure class=\"wp-block-embed-reverbnation\">\n https://reverbnation.com/\n <figcaption>Embedded content from reverbnation</figcaption>\n</figure>\n<!-- /wp:core-embed/reverbnation -->"
910
},
1011
{
1112
"attrs": {},

blocks/test/fixtures/core-embed__screencast.parsed.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"url": "https://screencast.com/"
66
},
77
"innerBlocks": [],
8-
"innerHTML": "\n<figure class=\"wp-block-embed-screencast\">\n https://screencast.com/\n <figcaption>Embedded content from screencast</figcaption>\n</figure>\n"
8+
"innerHTML": "\n<figure class=\"wp-block-embed-screencast\">\n https://screencast.com/\n <figcaption>Embedded content from screencast</figcaption>\n</figure>\n",
9+
"outerHTML": "<!-- wp:core-embed/screencast {\"url\":\"https://screencast.com/\"} -->\n<figure class=\"wp-block-embed-screencast\">\n https://screencast.com/\n <figcaption>Embedded content from screencast</figcaption>\n</figure>\n<!-- /wp:core-embed/screencast -->"
910
},
1011
{
1112
"attrs": {},

blocks/test/fixtures/core-embed__scribd.parsed.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"url": "https://scribd.com/"
66
},
77
"innerBlocks": [],
8-
"innerHTML": "\n<figure class=\"wp-block-embed-scribd\">\n https://scribd.com/\n <figcaption>Embedded content from scribd</figcaption>\n</figure>\n"
8+
"innerHTML": "\n<figure class=\"wp-block-embed-scribd\">\n https://scribd.com/\n <figcaption>Embedded content from scribd</figcaption>\n</figure>\n",
9+
"outerHTML": "<!-- wp:core-embed/scribd {\"url\":\"https://scribd.com/\"} -->\n<figure class=\"wp-block-embed-scribd\">\n https://scribd.com/\n <figcaption>Embedded content from scribd</figcaption>\n</figure>\n<!-- /wp:core-embed/scribd -->"
910
},
1011
{
1112
"attrs": {},

blocks/test/fixtures/core-embed__slideshare.parsed.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"url": "https://slideshare.com/"
66
},
77
"innerBlocks": [],
8-
"innerHTML": "\n<figure class=\"wp-block-embed-slideshare\">\n https://slideshare.com/\n <figcaption>Embedded content from slideshare</figcaption>\n</figure>\n"
8+
"innerHTML": "\n<figure class=\"wp-block-embed-slideshare\">\n https://slideshare.com/\n <figcaption>Embedded content from slideshare</figcaption>\n</figure>\n",
9+
"outerHTML": "<!-- wp:core-embed/slideshare {\"url\":\"https://slideshare.com/\"} -->\n<figure class=\"wp-block-embed-slideshare\">\n https://slideshare.com/\n <figcaption>Embedded content from slideshare</figcaption>\n</figure>\n<!-- /wp:core-embed/slideshare -->"
910
},
1011
{
1112
"attrs": {},

blocks/test/fixtures/core-embed__smugmug.parsed.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"url": "https://smugmug.com/"
66
},
77
"innerBlocks": [],
8-
"innerHTML": "\n<figure class=\"wp-block-embed-smugmug\">\n https://smugmug.com/\n <figcaption>Embedded content from smugmug</figcaption>\n</figure>\n"
8+
"innerHTML": "\n<figure class=\"wp-block-embed-smugmug\">\n https://smugmug.com/\n <figcaption>Embedded content from smugmug</figcaption>\n</figure>\n",
9+
"outerHTML": "<!-- wp:core-embed/smugmug {\"url\":\"https://smugmug.com/\"} -->\n<figure class=\"wp-block-embed-smugmug\">\n https://smugmug.com/\n <figcaption>Embedded content from smugmug</figcaption>\n</figure>\n<!-- /wp:core-embed/smugmug -->"
910
},
1011
{
1112
"attrs": {},

blocks/test/fixtures/core-embed__soundcloud.parsed.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"url": "https://soundcloud.com/"
66
},
77
"innerBlocks": [],
8-
"innerHTML": "\n<figure class=\"wp-block-embed-soundcloud\">\n https://soundcloud.com/\n <figcaption>Embedded content from soundcloud</figcaption>\n</figure>\n"
8+
"innerHTML": "\n<figure class=\"wp-block-embed-soundcloud\">\n https://soundcloud.com/\n <figcaption>Embedded content from soundcloud</figcaption>\n</figure>\n",
9+
"outerHTML": "<!-- wp:core-embed/soundcloud {\"url\":\"https://soundcloud.com/\"} -->\n<figure class=\"wp-block-embed-soundcloud\">\n https://soundcloud.com/\n <figcaption>Embedded content from soundcloud</figcaption>\n</figure>\n<!-- /wp:core-embed/soundcloud -->"
910
},
1011
{
1112
"attrs": {},

blocks/test/fixtures/core-embed__speaker.parsed.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"url": "https://speaker.com/"
66
},
77
"innerBlocks": [],
8-
"innerHTML": "\n<figure class=\"wp-block-embed-speaker\">\n https://speaker.com/\n <figcaption>Embedded content from speaker</figcaption>\n</figure>\n"
8+
"innerHTML": "\n<figure class=\"wp-block-embed-speaker\">\n https://speaker.com/\n <figcaption>Embedded content from speaker</figcaption>\n</figure>\n",
9+
"outerHTML": "<!-- wp:core-embed/speaker {\"url\":\"https://speaker.com/\"} -->\n<figure class=\"wp-block-embed-speaker\">\n https://speaker.com/\n <figcaption>Embedded content from speaker</figcaption>\n</figure>\n<!-- /wp:core-embed/speaker -->"
910
},
1011
{
1112
"attrs": {},

blocks/test/fixtures/core-embed__spotify.parsed.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"url": "https://spotify.com/"
66
},
77
"innerBlocks": [],
8-
"innerHTML": "\n<figure class=\"wp-block-embed-spotify\">\n https://spotify.com/\n <figcaption>Embedded content from spotify</figcaption>\n</figure>\n"
8+
"innerHTML": "\n<figure class=\"wp-block-embed-spotify\">\n https://spotify.com/\n <figcaption>Embedded content from spotify</figcaption>\n</figure>\n",
9+
"outerHTML": "<!-- wp:core-embed/spotify {\"url\":\"https://spotify.com/\"} -->\n<figure class=\"wp-block-embed-spotify\">\n https://spotify.com/\n <figcaption>Embedded content from spotify</figcaption>\n</figure>\n<!-- /wp:core-embed/spotify -->"
910
},
1011
{
1112
"attrs": {},

0 commit comments

Comments
 (0)