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

Hi there, I am trying to use this module and, I am getting the below error; ``` TypeError: gray_matter__WEBPACK_IMPORTED_MODULE_4__ is not a function ``` ```js // code import * as...

I created a remote code execution (RCE) vulnerability in a package of mine (see https://github.com/simonhaenisch/md-to-pdf/issues/99) because I was somehow not aware that gray-matter was able to parse JS as well,...

There is a part of my code that looks like this: ``` doc = matter() doc.content = render(doc.content) ``` Took awhile to figure out it returns the same object. I...

The "excerpt" option does not expect a function that returns a string but expects a function that mutates a file object itself. https://github.com/jonschlinkert/gray-matter#optionsexcerpt

In view of the current buzz surrounding the Eleventy project in the JAMStack and static site generator ecosystem, it would be useful for your own communication to add the project...

```ts const parser = matterParser({excerpt_separator: ''}) console.log(parser(string)); ```

``` const md = matter(fileContents, { excerpt: true, sections: true }) ``` md.sections type doesn't exist in GrayMatterFile

The type for `excerpt` is declared as: ``` type Input = string | Buffer interface GrayMatterOption< I extends Input, O extends GrayMatterOption > { parser?: () => void eval?: boolean...

Identical, successive calls to `matter` return different results. Example code: ```typescript const input = `--- foo: bar --- Tada!`; const parsed = matter(contents); const parsed_again = matter(contents); console.log(parsed.language) // =>...