We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
***
latest
Github issues templates uses yaml, and when I lint with remark the resulting markdown is being corrupted.
remark
import remarkFrontmatter from 'remark-frontmatter' import remarkParse from 'remark-parse' import remarkStringify from 'remark-stringify' import {unified} from 'unified' const md = ` --- layout: "solar-system" --- # Jupiter `; const file = await unified() .use(remarkParse) .use(remarkStringify) .use(remarkFrontmatter, ['yaml']) .use(function () { return function (tree) { console.dir(tree) } }) .process(md) console.log(String(file))
*** ## layout: "solar-system" # Jupiter
--- layout: "solar-system" --- # Jupiter
No response
The text was updated successfully, but these errors were encountered:
Welcome @coderaiser 👋 Frontmatter starts on the first line of a file, you have it on the second so it isn't recognized. Try
const markdown = `--- layout: "solar-system" --- # Jupiter `;
Runnable example: https://stackblitz.com/edit/github-uw6tjlky?file=src%2Fmain.ts
Sorry, something went wrong.
No branches or pull requests
Initial checklist
Affected package
latest
Steps to reproduce
Github issues templates uses yaml, and when I lint with
remark
the resulting markdown is being corrupted.Actual behavior
Expected behavior
Runtime
No response
Package manager
No response
Operating system
No response
Build and bundle tools
No response
The text was updated successfully, but these errors were encountered: