@pittica/gatsby-plugin-mdx-shortcodes
v2.0.0
Published
Shorcodes for gatsby-plugin-mdx.
Downloads
12
Readme
pittica/gatsby-plugin-mdx-shortcodes
Description
Shorcodes for gatsby-plugin-mdx.
Install
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.
Copyright
(c) 2021, Pittica S.r.l.