Skip to content

Instantly share code, notes, and snippets.

@allpwrfulroot
Last active December 11, 2019 16:50
Show Gist options
  • Save allpwrfulroot/3be5c30aaadc85356eb86c96f8451ad6 to your computer and use it in GitHub Desktop.
Save allpwrfulroot/3be5c30aaadc85356eb86c96f8451ad6 to your computer and use it in GitHub Desktop.
Gists for Medium article
const frontmatter = require('remark-frontmatter')
const withMDX = require('@next/mdx')({
extension: /\.mdx?$/,
options: {
remarkPlugins: [frontmatter],
},
})
module.exports = withMDX({
pageExtensions: ['js', 'jsx', 'mdx'],
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment