Community Plugin
View plugin on GitHubGatsby theme MDX
Gatsby theme that let you create pages from .mdx files inside the pages directory
Installation
- Install the theme
npm i --save @horacioh/gatsby-theme-mdx
# or
yarn add @horacioh/gatsby-theme-mdx- Add the theme to yout
gatsby-config.jsfiles
# gatsby-config.js
module.exports = {
// ...
plugins: [
// ...
`@horacioh/gatsby-theme-mdx`,
]
}- Create
.mdxfiles on yoursrc/pagesfolder and you are all set.
// pages/index.mdx
# Hello MDX pageThis theme includes
gatsby-plugin-mdx: to transform.mdxfiles to pages. docsgatsby-plugin-prismjs: to style codeblocks properly. docsgatsby-plugin-theme-ui: base & extensable styles for theme components. docs
Issues & feedback
Any questions or feedback is welcome!. please if you don’t understand something or need more documentation os some utility please file an issue or send me a tweet.
Happy Theming!!