-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Framework: Use custom serializer for texturize compatibility (#5897)
* Blocks: Improve validation to ensure decoded equivalence * Block API: Allow boolean attribute equivalence by presence * Block API: Update and dedupe attribute set * Framework: Create custom React serializer * Element: Render explicitly empty attribute values * Element: Render RawHTML dangerously from serializer
- Loading branch information
Showing
14 changed files
with
1,144 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<!-- wp:audio {"align":"right"} --> | ||
<figure class="wp-block-audio alignright"><audio controls="" src="https://media.simplecast.com/episodes/audio/80564/draft-podcast-51-livePublish2.mp3"></audio></figure> | ||
<figure class="wp-block-audio alignright"><audio controls src="https://media.simplecast.com/episodes/audio/80564/draft-podcast-51-livePublish2.mp3"></audio></figure> | ||
<!-- /wp:audio --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<!-- wp:code --> | ||
<pre class="wp-block-code"><code>export default function MyButton() { | ||
return <Button>Click Me!</Button>; | ||
return <Button>Click Me!</Button>; | ||
}</code></pre> | ||
<!-- /wp:code --> |
2 changes: 1 addition & 1 deletion
2
blocks/test/fixtures/core__image__center-caption.serialized.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<!-- wp:image {"align":"center"} --> | ||
<figure class="wp-block-image aligncenter"><img src="https://cldup.com/YLYhpou2oq.jpg" alt="" /> | ||
<figcaption>Give it a try. Press the "really wide" button on the image toolbar.</figcaption> | ||
<figcaption>Give it a try. Press the "really wide" button on the image toolbar.</figcaption> | ||
</figure> | ||
<!-- /wp:image --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<!-- wp:video --> | ||
<figure class="wp-block-video"><video controls="" src="https://awesome-fake.video/file.mp4"></video></figure> | ||
<figure class="wp-block-video"><video controls src="https://awesome-fake.video/file.mp4"></video></figure> | ||
<!-- /wp:video --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.