razzle-plugin-mdx-front-matter

1.0.1 • Public • Published

Add support for Front-Matter on MDX files in Razzle

Usage

razzle.config.js

module.exports = {
  plugins: [
    'mdx', 'mdx-front-matter'
  ]
}

src/my-mdx-file.mdx

---
name: My Document Title
---

The rest of my MDX content file.

src/your-app.js

import MyComp, { frontMatter } from './my-mdx-file'

console.log('Front-Matter:', frontMatter)
// Front-Matter: {name: "My Document Title"}

Created by: Eli Sklar

Readme

Keywords

none

Package Sidebar

Install

npm i razzle-plugin-mdx-front-matter

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

1.73 kB

Total Files

4

Last publish

Collaborators

  • elisk