front-matter icon indicating copy to clipboard operation
front-matter copied to clipboard

Extract YAML front matter from strings

Results 30 front-matter issues
Sort by recently updated
recently updated
newest added

i was trying modify date from attribute. ```js console.log(`File: ${file}, Creation Date: ${creationDate}`); const read = fs.readFileSync(path.join(process.cwd(), file), { encoding: "utf-8", }); try { const parse = fm(read); parse.attributes.date =...

Hi team, I've noticed that there is not a security policy for this project. [GitHub recommends](https://docs.github.com/en/code-security/getting-started/securing-your-repository#setting-a-security-policy) that projects have a Security Policy (SECURITY.md). This is a simple document that explains...

Hey there, I am using this to find the space between the front matter and markdown content so that I can insert an image after the front matter and before...

> Setup a better CI/CQ (github actions?) ref https://github.com/jxson/front-matter/issues/88

Greetings, I have a markdown file that has a date frontmatter field that expects the date in YYYY-MM-DD format. When I read the data out using front-matter (for instance, using...

You describe frontmatter in the way that I understand it: it must come at the top of a file. However, test() doesn't check that the YAML block comes at the...

When I tried to get contents of a yml file, attributes is empty, but body have contents

How can I preserve break lines in a long string? ```md --- title: Test description: My description with multiple lines --- ``` I've this error: `YAMLException: can not read a...

We have run into some edges with the parsing: - colons in values, including colon at the end of the line. YAML says that colons should be legal in values,...

- [ ] Remove Yaml parsing, front-matter should only extract and allow users to choose their own parsing methods - [ ] Refactor testing - [ ] Setup a better...