readme
This commit is contained in:
parent
90f8c11288
commit
455915dd98
@ -68,11 +68,11 @@ foo:
|
|||||||
# This is some markdown
|
# 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.title); // "Example Markdown with front matter"
|
||||||
console.log(frontmatter.foo); // [ "bar", "baz" ]
|
console.log(frontmatter.foo); // [ "bar", "baz" ]
|
||||||
console.log(markdown); // "\n# This is some markdown\n"
|
console.log(document); // "\n# This is some markdown\n"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user