Valhalla

Take a deep dive into our latest launch, the Valhalla Content Hub!

ContactSign Up for Free
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.

© 2022 Gatsby, Inc.