This commit is contained in:
James Brumond 2023-05-06 14:08:59 -07:00
parent 90f8c11288
commit 455915dd98
Signed by: james
GPG Key ID: E8F2FC44BAA3357A

View File

@ -68,11 +68,11 @@ foo:
# This is some markdown
`;
const { frontmatter, markdown } = process_frontmatter(raw_content);
const { frontmatter, document } = process_frontmatter(raw_content);
console.log(frontmatter.title); // "Example Markdown with front matter"
console.log(frontmatter.foo); // [ "bar", "baz" ]
console.log(markdown); // "\n# This is some markdown\n"
console.log(document); // "\n# This is some markdown\n"
```