6.13.1 • Published 3 months ago

gatsby-remark-responsive-iframe v6.13.1

Weekly downloads
30,416
License
MIT
Repository
github
Last release
3 months ago

gatsby-remark-responsive-iframe

Wraps iframes or objects (e.g. embedded YouTube videos) within markdown files in a responsive elastic container with a fixed aspect ratio. This ensures that the iframe or object will scale proportionally and to the full width of its container.

Install

npm install gatsby-remark-responsive-iframe

How to use

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

Usage in Markdown

This plugin requires both width and height attributes to be set on the iframe or object tag so that the correct aspect ratio can be calculated. Both unitless and pixel values are supported. If any other value is detected (for example a percentage width), the wrapper will not be applied.

Example usage:

This is a beautiful iframe:

<iframe src="http://www.example.com/" width="600" height="400"></iframe>
gatsby-theme-lumen@fengshangwuqi/gatsby-config@yiqilaitech/gatsby-theme-corebrawl-capped-webpagegatsby-theme-rayriffy-blog@everything-registry/sub-chunk-1723@dvcorg/gatsby-theme-iterative@fr8/gatsby-theme@gatsbyjs/gatsby-theme-websitesj-blog@mklabs/gatsby-theme-docs-coregatsby-starter-casper@m00n/gatsby-starter-docs-material-ui@mnemonicorg/gatsby-theme-archive-site@foudroyer/honey@foudroyer/mur@foudroyer/purity@lemonslicenebula/gatsby-theme-vlog@staticfuse/gatsby-theme-docsreact-holiday@novvum/base-theme@na399/gatsby-theme-carbon@platformos/gatsby-theme-platformos-docskiteldh.co@idahoedokpayi/gatsby-theme-bootstrap-album@kumarvaralakshmi/gatsby-theme-ghost@kjack/gatsby-theme-archive-site@jckr/ocular-gatsby@teefe/vesper-blog@riverscapes/gatsby-theme@tenpamk2/gatsby-theme-figure-blog@scion-scxml/sciblog@unisite/core-blog@syfxlin/gatsby-theme-coline@tantrongtt/gatsby-theme-trong@jiratki/gatsby-theme-minimal-portfolio@rocketseat/gatsby-theme-docs-core10secondsofcode-customgat-themegatsby-starter-hero-bloggatsby-starter-lammagatsby-starter-lumengatsby-theme-hyperobjekt-coregatsby-theme-jason-bloggatsby-theme-job-boardgatsby-theme-jumpalottahigh-bloggatsby-theme-editorialgatsby-theme-elkgatsby-theme-gatsbyjs-websitegatsby-theme-golden-condorgatsby-theme-grape-bloggatsby-theme-ghost-caspergatsby-starter-bloggatsby-starter-blog-dev-mdxgatsby-starter-blog-no-stylesgatsby-starter-blog-storyblokgatsby-starter-bootstrapgatsby-theme-blog-ghost-caspergatsby-theme-blogmicgatsby-theme-carbongatsby-theme-carbon-basegatsby-theme-carbon-betagatsby-theme-caspergatsby-theme-casper-v3gatsby-theme-catalyst-coregatsby-theme-beddygatsby-theme-ultronelegatsby-theme-vloggatsby-theme-tatogatsby-theme-sometagatsby-starter-morning-dewgatsby-starter-tailwind-mdx-bloggatsby-theme-chronobloggatsby-theme-chronoblog-coregatsby-theme-darklight-bloggatsby-theme-chronoblog-martyngatsby-theme-chronoblog-whcgatsby-theme-coacogatsby-v2-starter-lumengatsby-starter-yonggatsby-starter-zoomkodinggatsby-theme-academicgatsby-theme-academic-modifiedgatsby-theme-advancedgatsby-theme-amaranthgatsby-theme-nice-bloggatsby-theme-medium-to-own-bloggatsby-theme-massivelygatsby-theme-massively-jlpgatsby-theme-materialgatsby-theme-recipe-organizergatsby-theme-oculargatsby-theme-official-docsgatsby-theme-patternflygatsby-theme-pawan-blogfreight-trust-gatsby-freight-theme@appbaseio/reactive-manual-v3@appbaseio/reactive-manual-vuegatsby-skeleton-starterlmnts-gatsby-ts-skeleton
6.14.0-next.2

3 months ago

6.13.1

3 months ago

6.14.0-next.1

4 months ago

6.13.0

4 months ago

6.14.0-next.0

4 months ago

6.12.0

8 months ago

6.12.0-next.1

10 months ago

6.12.0-next.0

11 months ago

6.11.0-next.0

12 months ago

6.11.0-next.1

11 months ago

6.13.0-next.0

9 months ago

6.11.1

10 months ago

6.11.0

11 months ago

6.10.0

12 months ago

6.10.0-next.0

1 year ago

6.10.0-next.1

1 year ago

6.10.0-next.2

12 months ago

6.9.0

1 year ago

6.9.0-next.0

1 year ago

6.7.0

1 year ago

6.8.0

1 year ago

6.8.0-next.0

1 year ago

6.6.0-next.0

1 year ago

6.5.0

1 year ago

6.6.0

1 year ago

6.4.0

1 year ago

6.7.0-next.0

1 year ago

6.3.0-next.0

1 year ago

6.0.0

1 year ago

6.5.0-next.0

1 year ago

6.4.0-next.0

1 year ago

6.4.0-next.1

1 year ago

4.12.0

1 year ago

6.0.0-next.0

2 years ago

6.0.0-next.1

2 years ago

6.0.0-next.2

1 year ago

6.1.0-next.0

1 year ago

6.1.0

1 year ago

6.2.0

1 year ago

6.3.0

1 year ago

5.25.0

1 year ago

6.2.0-next.0

1 year ago

5.23.0-next.0

2 years ago

5.24.0-next.0

2 years ago

5.22.0

2 years ago

5.23.0

2 years ago

5.24.0

2 years ago

5.25.0-next.0

2 years ago

5.15.0

2 years ago

5.17.0-next.0

2 years ago

5.16.0

2 years ago

5.17.0

2 years ago

5.20.0

2 years ago

5.22.0-next.0

2 years ago

5.16.0-next.0

2 years ago

5.19.0-next.0

2 years ago

5.18.0

2 years ago

5.21.0

2 years ago

5.19.0

2 years ago

5.21.0-next.0

2 years ago

5.18.0-next.1

2 years ago

5.18.0-next.0

2 years ago

5.19.0-next.1

2 years ago

5.20.0-next.0

2 years ago

5.14.0-next.1

2 years ago

5.14.0-next.0

2 years ago

5.14.0-next.2

2 years ago

5.13.0

2 years ago

5.14.0

2 years ago

5.15.0-next.0

2 years ago

5.13.0-next.0

2 years ago

5.11.0-next.0

2 years ago

5.10.0

2 years ago

5.11.0

2 years ago

5.12.1

2 years ago

5.12.0

2 years ago

5.12.0-next.0

2 years ago

5.10.0-next.1

2 years ago

5.10.0-next.0

2 years ago

5.9.0

2 years ago

5.8.0-next.0

2 years ago

5.8.0

2 years ago

5.5.0-next.0

2 years ago

5.3.0

2 years ago

5.4.0

2 years ago

5.6.0-next.0

2 years ago

5.5.0

2 years ago

5.4.0-next.0

2 years ago

5.4.0-next.1

2 years ago

5.7.0-next.0

2 years ago

5.6.0

2 years ago

5.9.0-next.0

2 years ago

5.7.0

2 years ago

5.2.0

2 years ago

5.3.0-next.0

2 years ago

5.1.0

2 years ago

5.2.0-next.0

2 years ago

5.1.0-next.0

3 years ago

5.0.0

3 years ago

5.0.0-zz-next.2

3 years ago

4.11.0

3 years ago

5.0.0-zz-next.8

3 years ago

5.0.0-zz-next.1

3 years ago

5.0.0-next.1

3 years ago

5.0.0-next.0

3 years ago

4.11.0-next.2

3 years ago

4.11.0-next.1

3 years ago

4.10.0

3 years ago

4.11.0-next.0

3 years ago

4.9.0

3 years ago

4.10.0-next.0

3 years ago

4.9.0-next.3

3 years ago

4.9.0-next.1

3 years ago

4.9.0-next.2

3 years ago

4.8.0

3 years ago

4.9.0-next.0

3 years ago

4.7.0

3 years ago

4.8.0-next.0

3 years ago

4.7.0-next.1

3 years ago

4.6.0

3 years ago

4.7.0-next.0

3 years ago

4.5.0

3 years ago

4.6.0-next.0

3 years ago

4.5.0-next.0

3 years ago

4.5.0-next.1

3 years ago

4.4.1

3 years ago

4.4.0

3 years ago

4.3.0

3 years ago

4.4.0-next.2

3 years ago

4.4.0-next.1

3 years ago

4.3.0-next.0

3 years ago

4.3.0-next.1

3 years ago

4.2.0-next.0

3 years ago

4.2.1

3 years ago

4.2.0

3 years ago

4.4.0-next.0

3 years ago

4.1.0

3 years ago

4.0.0

3 years ago

4.0.0-next.0

3 years ago

4.1.0-next.0

3 years ago

3.3.0-next.1

3 years ago

3.2.0

3 years ago

3.3.0-next.0

3 years ago

3.1.0

3 years ago

3.2.0-next.0

3 years ago

3.1.0-next.2

3 years ago

3.0.0

3 years ago

3.1.0-next.1

3 years ago

3.1.0-next.0

3 years ago

3.0.0-v3rc.0

3 years ago

3.0.0-next.0

3 years ago

2.11.0

3 years ago

2.12.0-next.0

3 years ago

2.10.0

3 years ago

2.11.0-next.0

3 years ago

2.9.0

3 years ago

2.10.0-next.0

3 years ago

2.8.0

3 years ago

2.9.0-next.0

3 years ago

2.7.0

3 years ago

2.8.0-next.0

3 years ago

2.6.0

3 years ago

2.7.0-next.0

3 years ago

2.5.0

3 years ago

2.6.0-next.0

3 years ago

2.5.0-next.1

3 years ago

2.5.0-next.0

3 years ago

2.4.17

4 years ago

2.4.16

4 years ago

2.4.15

4 years ago

2.4.14

4 years ago

2.4.13

4 years ago

2.4.12

4 years ago

2.4.11

4 years ago

2.4.10

4 years ago

2.4.9

4 years ago

2.4.7

4 years ago

2.4.6

4 years ago

2.4.5

4 years ago

2.4.4

4 years ago

2.4.3

4 years ago

2.4.2

4 years ago

2.4.1

4 years ago

2.4.0

4 years ago

2.3.4

4 years ago

2.3.3

4 years ago

2.3.2

4 years ago

2.3.1

4 years ago

2.3.0

4 years ago

2.2.34

4 years ago

2.2.33

4 years ago

2.2.32

4 years ago

2.2.31

4 years ago

2.2.30

4 years ago

2.2.28

4 years ago

2.2.27

4 years ago

2.2.26

4 years ago

2.2.25

5 years ago

2.2.24

5 years ago

2.2.23

5 years ago

2.2.22

5 years ago

2.2.21

5 years ago

2.2.20

5 years ago

2.2.18

5 years ago

2.2.17

5 years ago

2.2.16

5 years ago

2.2.15

5 years ago

2.2.14

5 years ago

2.2.13

5 years ago

2.2.12

5 years ago

2.2.11

5 years ago

2.2.10

5 years ago

2.2.9

5 years ago

2.2.8

5 years ago

2.2.7

5 years ago

2.2.6

5 years ago

2.2.5

5 years ago

2.2.4

5 years ago

2.2.3

5 years ago

2.2.2

5 years ago

2.2.1

5 years ago

2.2.0

5 years ago

2.1.1

5 years ago

2.1.0

5 years ago

2.0.10

5 years ago

2.0.9

5 years ago

2.0.8

5 years ago

2.0.7

5 years ago

2.0.6

5 years ago

2.0.5

6 years ago

2.0.0-rc.5

6 years ago

2.0.0-rc.1

6 years ago

2.0.0-rc.0

6 years ago

2.0.0-beta.3

6 years ago

2.0.0-beta.2

6 years ago

2.0.0-beta.1

6 years ago

2.0.0-beta.0

6 years ago

1.4.20

6 years ago

2.0.0-alpha.2

6 years ago

1.4.18-12

6 years ago

1.4.18-11

6 years ago

1.4.18-10

6 years ago

1.4.18-9

6 years ago

1.4.19

6 years ago

1.4.18-8

6 years ago

1.4.18-6

6 years ago

1.4.18-5

6 years ago

1.4.18-4

6 years ago

1.4.18-3

6 years ago

1.4.18-2

6 years ago

1.4.18-1

6 years ago

1.4.18

6 years ago

1.4.18-0

6 years ago

1.4.17

6 years ago

1.4.16

6 years ago

1.4.15

6 years ago

1.4.14

6 years ago

1.4.13

7 years ago

1.4.12

7 years ago

1.4.11

7 years ago

1.4.10

7 years ago

1.4.9

7 years ago

1.4.8

7 years ago

1.4.7

7 years ago

1.4.6

7 years ago

1.4.5

7 years ago

1.4.4

7 years ago

2.0.0

7 years ago

1.4.3

7 years ago

1.4.2

7 years ago

1.4.1

7 years ago

1.3.0

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

1.0.0-beta.6

7 years ago

1.0.0-beta.1

7 years ago

1.0.0-alpha.22

7 years ago

1.0.0-alpha19

7 years ago

1.0.0-alpha14

7 years ago