This repository has been archived by the owner. It is now read-only.
Switch branches/tags
Clone or download
Latest commit 7c672f3 Jul 29, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples/basic Fix basic example chart dependencies May 26, 2018
src support files with a .mdx extension May 16, 2018
.babelrc Release new version May 7, 2018
.gitignore init May 7, 2018
.npmignore Add examples folder May 22, 2018
CHANGELOG.md Release 1.0.1 May 17, 2018
LICENSE Create LICENSE May 7, 2018
README.md Add v2 reference Jul 29, 2018
gatsby-node.js Release 1.0.1 May 17, 2018
index.js init May 7, 2018
package.json Fix basic example chart dependencies May 26, 2018
yarn.lock Fix basic example chart dependencies May 26, 2018

README.md

gatsby-plugin-mdx

this plugin is only applied to gatsby v1. for v2 please use gatsby-mdx

Installation

yarn add gatsby-plugin-mdx

then

yarn add @mdx-js/mdx @mdx-js/loader loader-utils --dev

In your gatsby-config.js

  plugins: ['gatsby-plugin-mdx'],

Usage

Check mdx document for syntax and examples: https://github.com/mdx-js/mdx#mdx-syntax

Example

Check examples folder for working examples

Basic: