diff --git a/examples/blog/src/layouts/BlogPost.astro b/examples/blog/src/layouts/BlogPost.astro index 67f297444..4baf8e972 100644 --- a/examples/blog/src/layouts/BlogPost.astro +++ b/examples/blog/src/layouts/BlogPost.astro @@ -40,11 +40,13 @@ const { {heroImage && }

{title}

{pubDate && } - {updatedDate && ( -
- Last updated on -
- )} + { + updatedDate && ( +
+ Last updated on +
+ ) + }
diff --git a/examples/blog/src/pages/blog.astro b/examples/blog/src/pages/blog.astro index c50cc0528..cedf505b0 100644 --- a/examples/blog/src/pages/blog.astro +++ b/examples/blog/src/pages/blog.astro @@ -37,18 +37,20 @@ const posts = (await Astro.glob('./blog/*.{md,mdx}')).sort(
    - {posts.map((post) => ( -
  • - - {post.frontmatter.title} -
  • - ))} + { + posts.map((post) => ( +
  • + + {post.frontmatter.title} +
  • + )) + }
diff --git a/examples/docs/src/components/Footer/AvatarList.astro b/examples/docs/src/components/Footer/AvatarList.astro index 5926936d6..b75589f5a 100644 --- a/examples/docs/src/components/Footer/AvatarList.astro +++ b/examples/docs/src/components/Footer/AvatarList.astro @@ -72,27 +72,31 @@ const additionalContributors = unique.length - recentContributors.length; // lis
- {additionalContributors > 0 && ( - - {`and ${additionalContributors} additional contributor${ - additionalContributors > 1 ? 's' : '' - }.`} - - )} + { + additionalContributors > 0 && ( + + {`and ${additionalContributors} additional contributor${ + additionalContributors > 1 ? 's' : '' + }.`} + + ) + } {unique.length === 0 && Contributors}
diff --git a/examples/docs/src/components/HeadCommon.astro b/examples/docs/src/components/HeadCommon.astro index 3551e5489..d77e4a90c 100644 --- a/examples/docs/src/components/HeadCommon.astro +++ b/examples/docs/src/components/HeadCommon.astro @@ -21,9 +21,7 @@ import '../styles/index.css'; /> - + + diff --git a/packages/astro/CHANGELOG.md b/packages/astro/CHANGELOG.md index 1885c650b..3fe64f0e4 100644 --- a/packages/astro/CHANGELOG.md +++ b/packages/astro/CHANGELOG.md @@ -501,7 +501,7 @@ This expands the abilities of `set:html` to ultimate service this use-case: ```astro -
+
``` This means you can take a legacy app that has been statically generated to HTML and directly consume that HTML within your templates. As is always the case with `set:html`, this should only be used on trusted content. @@ -514,8 +514,7 @@ set:html={new Response('Hello world', { headers: { 'content-type': 'text/html' }, })} - > -
+ /> ``` - `ReadableStream`s: ```astro @@ -526,8 +525,7 @@ controller.close(); }, })} - > - + /> ``` - `AsyncIterable`s: ```astro @@ -537,8 +535,7 @@ yield `
  • ${num}
  • `; } })()} - > - + /> ``` - `Iterable`s (non-async): ```astro @@ -548,8 +545,7 @@ yield `
  • ${num}
  • `; } })()} - > - + /> ``` ### Patch Changes