Netlify-cms: Support custom delimiters for frontmatter.

Created on 3 Jan 2018  路  2Comments  路  Source: netlify/netlify-cms

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

- What is the current behavior?
After https://github.com/netlify/netlify-cms/issues/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: "~~~".

formats claimed beginner good first issue enhancement accepted

Most helpful comment

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

All 2 comments

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.

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

Was this page helpful?
0 / 5 - 0 ratings