swyxio / gatsby-plugin-mdx-prismjs

gatsby-plugin-mdx-prismjs
MIT License
0 stars 1 forks source link

NOT WORKING YET - THIS IS ABANDONED FOR NOW I MAY PICK IT UP AGAIN IN FUTURE

gatsby-plugin-mdx-prismjs

a fork of https://github.com/nhducit/gatsby-plugin-mdx and @reach/router's docs. adds prismjs to your mdx.

Installation

yarn add gatsby-plugin-mdx-prismjs

then

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

In your gatsby-config.js

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

Usage

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

Example

Check examples folder for working examples

Basic: