gatsby-remark-wrap-iframe

1.1.0 • Public • Published

Wraps iframes or objects (e.g. embedded YouTube videos) within markdown files in a div with the classname gatsby-iframe-wrap. If you want out-of-the-box responsive iframes, please checkout gatsby-remark-repsonsive-iframe instead.

Install

npm install --save gatsby-remark-wrap-iframe

How to use

// In your gatsby-config.js
plugins: [
  {
    resolve: `gatsby-transformer-remark`,
    options: {
      plugins: [`gatsby-remark-wrap-iframe`],
    },
  },
];

Package Sidebar

Install

npm i gatsby-remark-wrap-iframe

Weekly Downloads

2

Version

1.1.0

License

MIT

Last publish

Collaborators

  • ardennl