Migrate to Netlify Today

Netlify announces the next evolution of Gatsby Cloud. Learn more

ContactSign Up
Community Plugin
View plugin on GitHub

pittica/gatsby-plugin-mdx-shortcodes

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

Description

Shorcodes for gatsby-plugin-mdx.

Install

npm 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, Pittica S.r.l.

© 2024 Gatsby, Inc.