Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] allow config gray-matter setting #1634

Open
bluelovers opened this issue Jun 1, 2019 · 1 comment
Open

[Feature request] allow config gray-matter setting #1634

bluelovers opened this issue Jun 1, 2019 · 1 comment

Comments

@bluelovers
Copy link

Feature request

i wanna parse other format 's front matter

but this looks like is close config , no way change it
https://github.com/vuejs/vuepress/blob/master/packages/@vuepress/shared-utils/src/parseFrontmatter.ts

What problem does this feature solve?

can parse other format

What does the proposed API look like?

same as gray-matter

How should this be implemented in your opinion?

Are you willing to work on this yourself?

if take this idea, i can try , but im 0% understand vuepress code

@MartinMuzatko
Copy link
Contributor

MartinMuzatko commented Nov 13, 2019

This would be great!

Vuepress is first parsing the markdown file for --- and then finally passing that to gray-matter.
https://github.com/vuejs/vuepress/blob/master/packages/@vuepress/shared-utils/src/parseVueFrontmatter.ts#L6
and passes to:
https://github.com/vuejs/vuepress/blob/master/packages/@vuepress/shared-utils/src/parseFrontmatter.ts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants