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

Smarter YAML front matter parser, used by metalsmith, Gatsby, Netlify, Assemble, mapbox-gl, phenomic, vuejs vitepress, TinaCMS, Shopify Polaris, Ant Design, Astro, hashicorp, garden, slidev, saber, s...

Results 69 gray-matter issues
Sort by recently updated
recently updated
newest added

It's quite possible I've missed something in the documentation, but when working with arrays, it would be nice to be able to control square bracket generation: ``` key1: [value1,value2,value3,value4,value5] ```...

Add types to the `engines` export

I was working on a project that needed to call an async method when creating excerpts but I couldn't get the excerpt function to work w/ async functions. Not sure...

#149 #150 #62 #147

Getting an error when trying to run the following hello world example, I get an error where the ```matter``` export is not a function. Offending code: ```js import * as...

The latest version of `js-yaml` uses the “safe” function variants by default now. The [migration guide for v3 to v4 is here](https://github.com/nodeca/js-yaml/blob/master/migrate_v3_to_v4.md), if you want to check for any edge...

``` function updateFrontMatter(template, field, value, isArray = false) { const matterValue = matter(template); if (isArray) { matterValue.data[field] = [...matterValue.data[field], ...value.split(",").map((v) => v.trim())]; } else { matterValue.data[field] = value; } const...

I am trying to use gray-matter in Next.js edge runtime. But it seems that the library is not compatible with edge runtime. I am getting the following error: ``` Dynamic...

The `.matter` result property behaves weirdly with caching. Example: ``` Welcome to Node.js v21.7.3. Type ".help" for more information. > let matter = require('gray-matter'); undefined > matter('---\ntitle: Title\n---').matter '\ntitle: Title'...