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

I've updated the code as little as possible but moved to ES Module format for the core source code while using the popular **tsup** tooling to ensure the downstream users...

use yaml instead of js-yaml as requested in #145 @jonschlinkert are you sure `yaml` is smaller than `js-yaml` (for some reason bundlephobia is broken for yaml and vscode showing bigger...

I'm using gray-matter/frontMatter and remark-mdx to read values of an .mdx file in a nextJS project: .mdx file: ``` details: - pronoun: she/her - favoriteThing: learning - leastFavoriteThing: winter -...

it's https://github.com/jonschlinkert/gray-matter/pull/137 + the adjusted missing files from the comment @jonschlinkert would appreciate if you could have a look, the change seems trivial and tests are still passing

This will fix #92 and 11ty/eleventy#586.

Using `import * as matter from 'gray-matter'` gets to top level scope of the module, not the default export. I'm guessing at some point the module was adjusted to have...

I have found an issue with what looks like `typescript` definition problem. This is the `JSON.stringify` output of `GrayMatterFile` object: ``` { content: 'test2', data: { title: 'test1' }, isEmpty:...

when i use gray-matter in vite react project, found this error: ``` react_devtools_backend.js:3973 ReferenceError: Buffer is not defined at Object.exports2.toBuffer (utils.js:36:38) at module2.exports (to-file.js:28:36) at matter (index.js:34:14) at getFile (Docs.jsx:154:17)...

I don't think this line in the README makes sense ... ``` import matter = require('gray-matter'); ``` At least VS Code red lines it with the error: >Import assignment cannot...

Right now there is no way to set the type of `file.data` except with `as`. In general, `as` in TypeScript conveys incomplete typings for external libraries or insufficient time to...