diff --git a/examples/with-content/src/content/blog/first-post.md b/examples/with-content/src/content/blog/first-post.md
index 33b844032f78..eb5e250f8263 100644
--- a/examples/with-content/src/content/blog/first-post.md
+++ b/examples/with-content/src/content/blog/first-post.md
@@ -1,8 +1,8 @@
---
-title: "First post"
-description: "Lorem ipsum dolor sit amet"
-pubDate: "Jul 08 2022"
-heroImage: "/placeholder-hero.jpg"
+title: 'First post'
+description: 'Lorem ipsum dolor sit amet'
+pubDate: 'Jul 08 2022'
+heroImage: '/placeholder-hero.jpg'
---
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Vitae ultricies leo integer malesuada nunc vel risus commodo viverra. Adipiscing enim eu turpis egestas pretium. Euismod elementum nisi quis eleifend quam adipiscing. In hac habitasse platea dictumst vestibulum. Sagittis purus sit amet volutpat. Netus et malesuada fames ac turpis egestas. Eget magna fermentum iaculis eu non diam phasellus vestibulum lorem. Varius sit amet mattis vulputate enim. Habitasse platea dictumst quisque sagittis. Integer quis auctor elit sed vulputate mi. Dictumst quisque sagittis purus sit amet.
diff --git a/examples/with-content/src/content/blog/markdown-style-guide.md b/examples/with-content/src/content/blog/markdown-style-guide.md
index 1f221fb91dba..bb7bb2daabd6 100644
--- a/examples/with-content/src/content/blog/markdown-style-guide.md
+++ b/examples/with-content/src/content/blog/markdown-style-guide.md
@@ -1,8 +1,8 @@
---
-title: "Markdown Style Guide"
-description: "Here is a sample of some basic Markdown syntax that can be used when writing Markdown content in Astro."
-pubDate: "Jul 01 2022"
-heroImage: "/placeholder-hero.jpg"
+title: 'Markdown Style Guide'
+description: 'Here is a sample of some basic Markdown syntax that can be used when writing Markdown content in Astro.'
+pubDate: 'Jul 01 2022'
+heroImage: '/placeholder-hero.jpg'
---
Here is a sample of some basic Markdown syntax that can be used when writing Markdown content in Astro.
@@ -12,10 +12,15 @@ Here is a sample of some basic Markdown syntax that can be used when writing Mar
The following HTML `
`—`
` elements represent six levels of section headings. `
` is the highest section level while `
` is the lowest.
# H1
+
## H2
+
### H3
+
#### H4
+
##### H5
+
###### H6
## Paragraph
@@ -35,7 +40,7 @@ The blockquote element represents content that is quoted from another source, op
#### Blockquote without attribution
> Tiam, ad mint andaepu dandae nostion secatur sequo quae.
-> **Note** that you can use *Markdown syntax* within a blockquote.
+> **Note** that you can use _Markdown syntax_ within a blockquote.
#### Blockquote with attribution
@@ -47,21 +52,21 @@ The blockquote element represents content that is quoted from another source, op
## Tables
| Italics | Bold | Code |
-| -------- | -------- | ------ |
-| *italics* | **bold** | `code` |
+| --------- | -------- | ------ |
+| _italics_ | **bold** | `code` |
## Code Blocks
```html
-
+
-
-
- Example HTML5 Document
-
-
-
Test
-
+
+
+ Example HTML5 Document
+
+
+
Test
+
```
@@ -75,19 +80,19 @@ The blockquote element represents content that is quoted from another source, op
#### Unordered List
-* List item
-* Another item
-* And another item
+- List item
+- Another item
+- And another item
#### Nested list
-* Fruit
- * Apple
- * Orange
- * Banana
-* Dairy
- * Milk
- * Cheese
+- Fruit
+ - Apple
+ - Orange
+ - Banana
+- Dairy
+ - Milk
+ - Cheese
## Other Elements — abbr, sub, sup, kbd, mark
diff --git a/examples/with-content/src/content/blog/second-post.md b/examples/with-content/src/content/blog/second-post.md
index 1bd5ee4658a4..b5a0679383c4 100644
--- a/examples/with-content/src/content/blog/second-post.md
+++ b/examples/with-content/src/content/blog/second-post.md
@@ -1,8 +1,8 @@
---
-title: "Second post"
-description: "Lorem ipsum dolor sit amet"
-pubDate: "Jul 22 2022"
-heroImage: "/placeholder-hero.jpg"
+title: 'Second post'
+description: 'Lorem ipsum dolor sit amet'
+pubDate: 'Jul 22 2022'
+heroImage: '/placeholder-hero.jpg'
---
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Vitae ultricies leo integer malesuada nunc vel risus commodo viverra. Adipiscing enim eu turpis egestas pretium. Euismod elementum nisi quis eleifend quam adipiscing. In hac habitasse platea dictumst vestibulum. Sagittis purus sit amet volutpat. Netus et malesuada fames ac turpis egestas. Eget magna fermentum iaculis eu non diam phasellus vestibulum lorem. Varius sit amet mattis vulputate enim. Habitasse platea dictumst quisque sagittis. Integer quis auctor elit sed vulputate mi. Dictumst quisque sagittis purus sit amet.
diff --git a/examples/with-content/src/content/blog/third-post.md b/examples/with-content/src/content/blog/third-post.md
index d7f1f24b0408..a2bc343bd7de 100644
--- a/examples/with-content/src/content/blog/third-post.md
+++ b/examples/with-content/src/content/blog/third-post.md
@@ -1,8 +1,8 @@
---
-title: "Third post"
-description: "Lorem ipsum dolor sit amet"
-pubDate: "Jul 15 2022"
-heroImage: "/placeholder-hero.jpg"
+title: 'Third post'
+description: 'Lorem ipsum dolor sit amet'
+pubDate: 'Jul 15 2022'
+heroImage: '/placeholder-hero.jpg'
---
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Vitae ultricies leo integer malesuada nunc vel risus commodo viverra. Adipiscing enim eu turpis egestas pretium. Euismod elementum nisi quis eleifend quam adipiscing. In hac habitasse platea dictumst vestibulum. Sagittis purus sit amet volutpat. Netus et malesuada fames ac turpis egestas. Eget magna fermentum iaculis eu non diam phasellus vestibulum lorem. Varius sit amet mattis vulputate enim. Habitasse platea dictumst quisque sagittis. Integer quis auctor elit sed vulputate mi. Dictumst quisque sagittis purus sit amet.
diff --git a/examples/with-content/src/content/types.generated.d.ts b/examples/with-content/src/content/types.generated.d.ts
index af803d2cf722..7f0f0df84968 100644
--- a/examples/with-content/src/content/types.generated.d.ts
+++ b/examples/with-content/src/content/types.generated.d.ts
@@ -42,45 +42,44 @@ declare module 'astro:content' {
};
const entryMap: {
- "blog": {
-"first-post.md": {
- id: "first-post.md",
- slug: "first-post",
- body: string,
- collection: "blog",
- data: InferEntrySchema<"blog">
-},
-"markdown-style-guide.md": {
- id: "markdown-style-guide.md",
- slug: "markdown-style-guide",
- body: string,
- collection: "blog",
- data: InferEntrySchema<"blog">
-},
-"second-post.md": {
- id: "second-post.md",
- slug: "second-post",
- body: string,
- collection: "blog",
- data: InferEntrySchema<"blog">
-},
-"third-post.md": {
- id: "third-post.md",
- slug: "third-post",
- body: string,
- collection: "blog",
- data: InferEntrySchema<"blog">
-},
-"using-mdx.mdx": {
- id: "using-mdx.mdx",
- slug: "using-mdx",
- body: string,
- collection: "blog",
- data: InferEntrySchema<"blog">
-},
-},
-
+ blog: {
+ 'first-post.md': {
+ id: 'first-post.md';
+ slug: 'first-post';
+ body: string;
+ collection: 'blog';
+ data: InferEntrySchema<'blog'>;
+ };
+ 'markdown-style-guide.md': {
+ id: 'markdown-style-guide.md';
+ slug: 'markdown-style-guide';
+ body: string;
+ collection: 'blog';
+ data: InferEntrySchema<'blog'>;
+ };
+ 'second-post.md': {
+ id: 'second-post.md';
+ slug: 'second-post';
+ body: string;
+ collection: 'blog';
+ data: InferEntrySchema<'blog'>;
+ };
+ 'third-post.md': {
+ id: 'third-post.md';
+ slug: 'third-post';
+ body: string;
+ collection: 'blog';
+ data: InferEntrySchema<'blog'>;
+ };
+ 'using-mdx.mdx': {
+ id: 'using-mdx.mdx';
+ slug: 'using-mdx';
+ body: string;
+ collection: 'blog';
+ data: InferEntrySchema<'blog'>;
+ };
+ };
};
- type ContentConfig = typeof import("./config");
+ type ContentConfig = typeof import('./config');
}
diff --git a/examples/with-content/src/layouts/BlogPost.astro b/examples/with-content/src/layouts/BlogPost.astro
index c2527082af0d..ba3ea70182c9 100644
--- a/examples/with-content/src/layouts/BlogPost.astro
+++ b/examples/with-content/src/layouts/BlogPost.astro
@@ -6,9 +6,7 @@ import type { CollectionEntry } from 'astro:content';
type Props = CollectionEntry<'blog'>['data'];
-const {
- title, description, pubDate, updatedDate, heroImage,
-} = Astro.props;
+const { title, description, pubDate, updatedDate, heroImage } = Astro.props;
---
diff --git a/examples/with-content/src/pages/about.md b/examples/with-content/src/pages/about.md
index 2aeb6562ede6..f8d52b862b1a 100644
--- a/examples/with-content/src/pages/about.md
+++ b/examples/with-content/src/pages/about.md
@@ -1,9 +1,9 @@
---
-layout: "../layouts/BlogPost.astro"
-title: "About Me"
-description: "Lorem ipsum dolor sit amet"
-updatedDate: "August 08 2022"
-heroImage: "/placeholder-about.jpg"
+layout: '../layouts/BlogPost.astro'
+title: 'About Me'
+description: 'Lorem ipsum dolor sit amet'
+updatedDate: 'August 08 2022'
+heroImage: '/placeholder-about.jpg'
---
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Vitae ultricies leo integer malesuada nunc vel risus commodo viverra. Adipiscing enim eu turpis egestas pretium. Euismod elementum nisi quis eleifend quam adipiscing. In hac habitasse platea dictumst vestibulum. Sagittis purus sit amet volutpat. Netus et malesuada fames ac turpis egestas. Eget magna fermentum iaculis eu non diam phasellus vestibulum lorem. Varius sit amet mattis vulputate enim. Habitasse platea dictumst quisque sagittis. Integer quis auctor elit sed vulputate mi. Dictumst quisque sagittis purus sit amet.
@@ -14,4 +14,4 @@ Mollis nunc sed id semper risus in. Convallis a cras semper auctor neque. Diam s
Mattis ullamcorper velit sed ullamcorper morbi tincidunt. Tortor posuere ac ut consequat semper viverra. Tellus mauris a diam maecenas sed enim ut sem viverra. Venenatis urna cursus eget nunc scelerisque viverra mauris in. Arcu ac tortor dignissim convallis aenean et tortor at. Curabitur gravida arcu ac tortor dignissim convallis aenean et tortor. Egestas tellus rutrum tellus pellentesque eu. Fusce ut placerat orci nulla pellentesque dignissim enim sit amet. Ut enim blandit volutpat maecenas volutpat blandit aliquam etiam. Id donec ultrices tincidunt arcu. Id cursus metus aliquam eleifend mi.
-Tempus quam pellentesque nec nam aliquam sem. Risus at ultrices mi tempus imperdiet. Id porta nibh venenatis cras sed felis eget velit. Ipsum a arcu cursus vitae. Facilisis magna etiam tempor orci eu lobortis elementum. Tincidunt dui ut ornare lectus sit. Quisque non tellus orci ac. Blandit libero volutpat sed cras. Nec tincidunt praesent semper feugiat nibh sed pulvinar proin gravida. Egestas integer eget aliquet nibh praesent tristique magna.
\ No newline at end of file
+Tempus quam pellentesque nec nam aliquam sem. Risus at ultrices mi tempus imperdiet. Id porta nibh venenatis cras sed felis eget velit. Ipsum a arcu cursus vitae. Facilisis magna etiam tempor orci eu lobortis elementum. Tincidunt dui ut ornare lectus sit. Quisque non tellus orci ac. Blandit libero volutpat sed cras. Nec tincidunt praesent semper feugiat nibh sed pulvinar proin gravida. Egestas integer eget aliquet nibh praesent tristique magna.
diff --git a/examples/with-content/src/pages/blog/[...slug].astro b/examples/with-content/src/pages/blog/[...slug].astro
index c8e86c487c79..0d656a1534f0 100644
--- a/examples/with-content/src/pages/blog/[...slug].astro
+++ b/examples/with-content/src/pages/blog/[...slug].astro
@@ -1,10 +1,10 @@
---
-import { CollectionEntry, getCollection } from "astro:content";
-import BlogPost from "../../layouts/BlogPost.astro";
+import { CollectionEntry, getCollection } from 'astro:content';
+import BlogPost from '../../layouts/BlogPost.astro';
export async function getStaticPaths() {
const posts = await getCollection('blog');
- return posts.map(post => ({
+ return posts.map((post) => ({
params: { slug: post.slug },
props: post,
}));
diff --git a/examples/with-content/src/pages/blog/index.astro b/examples/with-content/src/pages/blog/index.astro
index e4f769f8a242..c46f23dea0eb 100644
--- a/examples/with-content/src/pages/blog/index.astro
+++ b/examples/with-content/src/pages/blog/index.astro
@@ -7,7 +7,7 @@ import { getCollection } from 'astro:content';
const posts = (await getCollection('blog')).sort(
(a, b) => a.data.pubDate.valueOf() - b.data.pubDate.valueOf()
-)
+);
---
@@ -37,18 +37,20 @@ const posts = (await getCollection('blog')).sort(