Skip to content

Commit

Permalink
Merge pull request #440 from navidadelpour/fix-access-frontmatter-exa…
Browse files Browse the repository at this point in the history
…mple

docs: remove indentations that cause issue in parsing frontmatter
  • Loading branch information
dstaley committed Mar 6, 2024
2 parents b9afe08 + b4de901 commit 995a3b2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -527,11 +527,11 @@ export default async function Home() {
// Optionally provide a type for your frontmatter object
const { content, frontmatter } = await compileMDX<{ title: string }>({
source: `---
title: RSC Frontmatter Example
---
# Hello World
This is from Server Components!
`,
title: RSC Frontmatter Example
---
# Hello World
This is from Server Components!
`,
options: { parseFrontmatter: true },
})
return (
Expand Down

0 comments on commit 995a3b2

Please sign in to comment.