-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Blocks: Replace js-beautify with element beautification #6716
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
<!-- 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 --> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,17 @@ | ||
<!-- wp:columns {"columns":3} --> | ||
<div class="wp-block-columns has-3-columns"> | ||
<!-- wp:paragraph {"layout":"column-1"} --> | ||
<p class="layout-column-1">Column One, Paragraph One</p> | ||
<!-- /wp:paragraph --> | ||
<div class="wp-block-columns has-3-columns"><!-- wp:paragraph {"layout":"column-1"} --> | ||
<p class="layout-column-1">Column One, Paragraph One</p> | ||
<!-- /wp:paragraph --> | ||
|
||
<!-- wp:paragraph {"layout":"column-1"} --> | ||
<p class="layout-column-1">Column One, Paragraph Two</p> | ||
<!-- /wp:paragraph --> | ||
<!-- wp:paragraph {"layout":"column-1"} --> | ||
<p class="layout-column-1">Column One, Paragraph Two</p> | ||
<!-- /wp:paragraph --> | ||
|
||
<!-- wp:paragraph {"layout":"column-2"} --> | ||
<p class="layout-column-2">Column Two, Paragraph One</p> | ||
<!-- /wp:paragraph --> | ||
<!-- wp:paragraph {"layout":"column-2"} --> | ||
<p class="layout-column-2">Column Two, Paragraph One</p> | ||
<!-- /wp:paragraph --> | ||
|
||
<!-- wp:paragraph {"layout":"column-3"} --> | ||
<p class="layout-column-3">Column Three, Paragraph One</p> | ||
<!-- /wp:paragraph --> | ||
</div> | ||
<!-- wp:paragraph {"layout":"column-3"} --> | ||
<p class="layout-column-3">Column Three, Paragraph One</p> | ||
<!-- /wp:paragraph --></div> | ||
<!-- /wp:columns --> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<!-- wp:preformatted --> | ||
<pre class="wp-block-preformatted">Some <em>preformatted</em> text...<br/>And more!</pre> | ||
<pre class="wp-block-preformatted">Some <em>preformatted</em> text...<br />And more!</pre> | ||
<!-- /wp:preformatted --> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
<!-- wp:pullquote --> | ||
<blockquote class="wp-block-pullquote alignnone"> | ||
<p>Testing pullquote block...</p><cite>...with a caption</cite></blockquote> | ||
<p>Testing pullquote block...</p><cite>...with a caption</cite> | ||
</blockquote> | ||
<!-- /wp:pullquote --> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
<!-- wp:pullquote --> | ||
<blockquote class="wp-block-pullquote alignnone"> | ||
<p>Paragraph <strong>one</strong></p> | ||
<p>Paragraph two</p><cite>by whomever</cite></blockquote> | ||
<p>Paragraph two</p><cite>by whomever</cite> | ||
</blockquote> | ||
<!-- /wp:pullquote --> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
<!-- wp:quote --> | ||
<blockquote class="wp-block-quote"> | ||
<p>The editor will endeavour to create a new page and post building experience that makes writing rich posts effortless, and has “blocks” to make it easy what today might take shortcodes, custom HTML, or “mystery meat” embed discovery.</p><cite>Matt Mullenweg, 2017</cite></blockquote> | ||
<p>The editor will endeavour to create a new page and post building experience that makes writing rich posts effortless, and has “blocks” to make it easy what today might take shortcodes, custom HTML, or “mystery meat” embed discovery.</p><cite>Matt Mullenweg, 2017</cite> | ||
</blockquote> | ||
<!-- /wp:quote --> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
<!-- wp:quote {"style":2} --> | ||
<blockquote class="wp-block-quote is-large"> | ||
<p>There is no greater agony than bearing an untold story inside you.</p><cite>Maya Angelou</cite></blockquote> | ||
<p>There is no greater agony than bearing an untold story inside you.</p><cite>Maya Angelou</cite> | ||
</blockquote> | ||
<!-- /wp:quote --> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<!-- wp:paragraph --> | ||
<p>This is an old-style text block. Changed to <code>paragraph</code> in #2135.</p> | ||
<p>This is an old-style text block. Changed to <code>paragraph</code> in #2135.</p> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Interesting. So beautify is also dropping multiple spaces? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Yes, presumably because in a browser there would be no rendered difference (whitespace collapsing). |
||
<!-- /wp:paragraph --> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<!-- wp:verse --> | ||
<pre class="wp-block-verse">A <em>verse</em>…<br/>And more!</pre> | ||
<pre class="wp-block-verse">A <em>verse</em>…<br />And more!</pre> | ||
<!-- /wp:verse --> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
<!-- 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> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is nice! |
||
</figure> | ||
<!-- /wp:video --> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unrelated. Ugh, maybe we should wrap cite elements in a footer or something?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would the benefit there be merely to put
cite
on its own line?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To me it doesn't make sense to have phrasing content next to block level content (
cite
andp
on the same level). I guess that's just a personal thing.