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

Support custom delimiters for frontmatter. #980

Closed
tech4him1 opened this issue Jan 3, 2018 · 2 comments · Fixed by #1064
Closed

Support custom delimiters for frontmatter. #980

tech4him1 opened this issue Jan 3, 2018 · 2 comments · Fixed by #1064

Comments

@tech4him1
Copy link
Contributor

tech4him1 commented Jan 3, 2018

- Do you want to request a feature or report a bug?
feature

- What is the current behavior?
After #563, we now support frontmatter in multiple formats, but we only allow it to be parsed using the default delimiters.

- What is the expected behavior?
It would be nice to allow the user to specify their own delimiters for parsing frontmatter out of an entry file. @erquhart suggested using frontmatter_delimiter: "~~~".

@erquhart
Copy link
Contributor

erquhart commented Jan 3, 2018

Note: could also accept an array of opening/closing delims, as gray-matter does: ['~~~', '~~~']. No, I cannot think of a use case for this lol. But I'm sure someone can.

@Swieckowski
Copy link
Contributor

I'd like to take this, but it might take me a bit since I'm green to the codebase.

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

Successfully merging a pull request may close this issue.

3 participants