-
I'm not sure if this is a bug or being worked out but I can't seem to get package.json {
"dependencies": {
"remark": "^13.0.0-alpha.1",
"remark-frontmatter": "^3.0.0"
}
} index.js let remark = require('remark')
let frontmatter = require('remark-frontmatter')
let md = `
---
title: test
---
# Test
`
let output = remark()
.use(frontmatter, ['yaml'])
.parse(md)
console.dir(output) output
|
Beta Was this translation helpful? Give feedback.
Answered by
wooorm
Oct 11, 2020
Replies: 2 comments
-
This indeed changed. Frontmatter still works, but must start on the first line: -let md = `
----
+let md = `---
title: test
---
# Test
`
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
wooorm
-
Oops ok makes sense thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This indeed changed. Frontmatter still works, but must start on the first line: