Skip to content

Commit

Permalink
Remove unnecessary new paragraph in style_pages.md (#6838)
Browse files Browse the repository at this point in the history
#6833 took a shortcut and applied the format filter on just part of the sentence. This resulted in the word "stylesheets" being put in a new paragraph after the word "external". Apparently, the filter mechanism always creates a new paragraph as opposed to coalescing all whitespace characters into a single space.

To fix this, we will have to duplicate some parts of the sentence, unfortunately.
  • Loading branch information
zhangsu authored Aug 14, 2024
1 parent 38f0a37 commit c6a7b00
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,11 @@ Warning: AMP for Email specifies additional CSS constraints which are described
[AMP for Email Supported CSS](../../../../documentation/guides-and-tutorials/learn/email-spec/amp-email-css.md).
[/filter]

Like all web pages, AMP pages are styled with CSS,
but you can’t reference external
[filter formats="websites, ads, stories"]
stylesheets (with the exception of [custom fonts](#the-custom-fonts-exception)).
Like all web pages, AMP pages are styled with CSS, but you can’t reference external stylesheets (with the exception of [custom fonts](#the-custom-fonts-exception)).
[/filter]
[filter formats="email"]
stylesheets.
Like all web pages, AMP pages are styled with CSS, but you can’t reference external stylesheets.
[/filter]
Also certain styles are disallowed due to performance implications.

Expand Down

0 comments on commit c6a7b00

Please sign in to comment.