@johnlindquist/gatsby-remark-embed-codesandbox

0.0.3 • Public • Published

@johnlindquist/gatsby-remark-embed-codesandbox

Embed a Codesandbox Editor in your Markdown

Install

  1. Install plugin to your site:
npm i @johnlindquist/gatsby-remark-embed-codesanbox
  1. Add following to your gatsby-config.js:
    plugins: [
      {
        resolve: "gatsby-transformer-remark",
        options: {
          plugins: [
          {
            resolve: "@johnlindquist/gatsby-remark-embed-codesandbox",
          }
          ]
        }
      },
  1. Restart gastby.

Usage

The following will now be converted to a proper iframe:

[https://codesandbox.io/embed/o52jlrvjwy?view=editor](https://codesandbox.io/embed/o52jlrvjwy?view=editor)

License

MIT

Package Sidebar

Install

npm i @johnlindquist/gatsby-remark-embed-codesandbox

Weekly Downloads

0

Version

0.0.3

License

MIT

Unpacked Size

1.6 kB

Total Files

3

Last publish

Collaborators

  • johnlindquist