pittica/gatsby-plugin-mdx-shortcodes

License Version Release GitHub package.json dependency version (dev dep on branch) npm

Description

Shorcodes for gatsby-plugin-mdx.

Install

npm

npm install @pittica/gatsby-plugin-mdx-shortcodes

Usage

The plugin provides basic MDX shortcodes.

Edit your gatsby-browser.js.

import React from "react"
import Shortcodes from "@pittica/gatsby-plugin-mdx-shortcodes"
import { MDXProvider } from "@mdx-js/react"

const wrapRootElement = ({ element }) => (
  <MDXProvider components={Shortcodes}>{element}</MDXProvider>
)

export { wrapRootElement }

Notes

Built for internal use.

(c) 2021, Pittaca S.r.l.s.