6.14.0 • Published 3 days ago

gatsby-remark-responsive-iframe v6.14.0

Weekly downloads
30,416
License
MIT
Repository
github
Last release
3 days 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@divramod/gatsby-theme-ts-mdxlmnts-gatsby-ts-skeletonjay-blogjesielviana-gatsby-theme-docs-coreklair.cohive-honeycombgraphql-blogmbernetiocular-gatsbyreact-holidaysj-blog@appbaseio/reactive-manual-v3@appbaseio/reactive-manual-vue@beccanelson/gatsby-theme-writer@afuh-test/gatsby-theme-minimal@afuh/gatsby-theme-minimal@agney/gatsby-theme-advent@amberleyromo/gatsby-theme-blog@cieloazul310/gatsby-theme-aoi-blog-core@chrismwilliams/gatsby-theme-cactus@chakrihacker/gatsby-theme-fyndx1kohei110secondsofcode-custom@adamquadmon/gatsby-theme-lucifero@codinators/gatsby-theme-blog@codynhat/gatsby-theme-cactus@daniel.husar/gatsby-theme-spring@foudroyer/honey@foudroyer/mur@foudroyer/purity@fr8/gatsby-theme@gatsbyjs/gatsby-theme-website@kumarvaralakshmi/gatsby-theme-ghost@lemonslicenebula/gatsby-theme-vlog@m00n/gatsby-starter-docs-material-ui@na399/gatsby-theme-carbon@mnemonicorg/gatsby-theme-archive-site@mklabs/gatsby-theme-docs-core@jiratki/gatsby-theme-minimal-portfolio@jckr/ocular-gatsby@dvcorg/gatsby-theme-iterative@idahoedokpayi/gatsby-theme-bootstrap-album@kjack/gatsby-theme-archive-site@platformos/gatsby-theme-platformos-docskit@scion-scxml/sciblog@riverscapes/gatsby-theme@staticfuse/gatsby-theme-docs@novvum/base-theme@syfxlin/gatsby-theme-coline@rocketseat/gatsby-theme-docs-core@defite/gatsby-theme-defite@dotnetthailand/gatsby-theme-minimal-portfolioeldh.co@tenpamk2/gatsby-theme-figure-blog@tantrongtt/gatsby-theme-trong@teefe/vesper-blog@unisite/core-blog@wesleylhandy/gatsby-theme-author-base@westegg/gatsby-theme-casper@westegg/theme-jasper@weknow/gatsby-theme-drupal-boina@willjw3/gatsby-theme-techblog@zalastax/nolb-gatsby-rfreight-trust-gatsby-freight-themegat-themegatsby-skeleton-startergatsby-theme-jason-bloggatsby-theme-job-boardgatsby-theme-jumpalottahigh-bloggatsby-theme-massivelygatsby-theme-massively-jlpgatsby-theme-materialgatsby-theme-medium-to-own-bloggatsby-theme-beddygatsby-theme-carbongatsby-theme-carbon-basegatsby-theme-carbon-betagatsby-theme-caspergatsby-theme-casper-v3gatsby-theme-blog-ghost-caspergatsby-theme-blogmicgatsby-v2-starter-lumengatsby-theme-nice-bloggatsby-theme-sometagatsby-theme-oculargatsby-theme-official-docsgatsby-theme-patternflygatsby-theme-pawan-bloggatsby-theme-recipe-organizergatsby-theme-amaranthgatsby-starter-lammagatsby-starter-lumengatsby-starter-morning-dewgatsby-starter-blog
6.14.0

2 months ago

6.15.0-next.0

2 months ago

6.13.2

4 months ago

6.14.0-next.2

11 months ago

6.13.1

11 months ago

6.14.0-next.1

12 months ago

6.13.0

1 year ago

6.14.0-next.0

1 year ago

6.12.0

1 year ago

6.12.0-next.1

1 year ago

6.12.0-next.0

2 years ago

6.11.0-next.0

2 years ago

6.11.0-next.1

2 years ago

6.13.0-next.0

1 year ago

6.11.1

1 year ago

6.11.0

2 years ago

6.10.0

2 years ago

6.10.0-next.0

2 years ago

6.10.0-next.1

2 years ago

6.10.0-next.2

2 years ago

6.9.0

2 years ago

6.9.0-next.0

2 years ago

6.7.0

2 years ago

6.8.0

2 years ago

6.8.0-next.0

2 years ago

6.6.0-next.0

2 years ago

6.5.0

2 years ago

6.6.0

2 years ago

6.4.0

2 years ago

6.7.0-next.0

2 years ago

6.3.0-next.0

2 years ago

6.0.0

2 years ago

6.5.0-next.0

2 years ago

6.4.0-next.0

2 years ago

6.4.0-next.1

2 years ago

4.12.0

2 years ago

6.0.0-next.0

2 years ago

6.0.0-next.1

2 years ago

6.0.0-next.2

2 years ago

6.1.0-next.0

2 years ago

6.1.0

2 years ago

6.2.0

2 years ago

6.3.0

2 years ago

5.25.0

2 years ago

6.2.0-next.0

2 years 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

3 years ago

5.17.0-next.0

3 years ago

5.16.0

3 years ago

5.17.0

3 years ago

5.20.0

2 years ago

5.22.0-next.0

2 years ago

5.16.0-next.0

3 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

3 years ago

5.18.0-next.0

3 years ago

5.19.0-next.1

2 years ago

5.20.0-next.0

2 years ago

5.14.0-next.1

3 years ago

5.14.0-next.0

3 years ago

5.14.0-next.2

3 years ago

5.13.0

3 years ago

5.14.0

3 years ago

5.15.0-next.0

3 years ago

5.13.0-next.0

3 years ago

5.11.0-next.0

3 years ago

5.10.0

3 years ago

5.11.0

3 years ago

5.12.1

3 years ago

5.12.0

3 years ago

5.12.0-next.0

3 years ago

5.10.0-next.1

3 years ago

5.10.0-next.0

3 years ago

5.9.0

3 years ago

5.8.0-next.0

3 years ago

5.8.0

3 years ago

5.5.0-next.0

3 years ago

5.3.0

3 years ago

5.4.0

3 years ago

5.6.0-next.0

3 years ago

5.5.0

3 years ago

5.4.0-next.0

3 years ago

5.4.0-next.1

3 years ago

5.7.0-next.0

3 years ago

5.6.0

3 years ago

5.9.0-next.0

3 years ago

5.7.0

3 years ago

5.2.0

3 years ago

5.3.0-next.0

3 years ago

5.1.0

3 years ago

5.2.0-next.0

3 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

4 years ago

4.6.0-next.0

4 years ago

4.5.0-next.0

4 years ago

4.5.0-next.1

4 years ago

4.4.1

4 years ago

4.4.0

4 years ago

4.3.0

4 years ago

4.4.0-next.2

4 years ago

4.4.0-next.1

4 years ago

4.3.0-next.0

4 years ago

4.3.0-next.1

4 years ago

4.2.0-next.0

4 years ago

4.2.1

4 years ago

4.2.0

4 years ago

4.4.0-next.0

4 years ago

4.1.0

4 years ago

4.0.0

4 years ago

4.0.0-next.0

4 years ago

4.1.0-next.0

4 years ago

3.3.0-next.1

4 years ago

3.2.0

4 years ago

3.3.0-next.0

4 years ago

3.1.0

4 years ago

3.2.0-next.0

4 years ago

3.1.0-next.2

4 years ago

3.0.0

4 years ago

3.1.0-next.1

4 years ago

3.1.0-next.0

4 years ago

3.0.0-v3rc.0

4 years ago

3.0.0-next.0

4 years ago

2.11.0

4 years ago

2.12.0-next.0

4 years ago

2.10.0

4 years ago

2.11.0-next.0

4 years ago

2.9.0

4 years ago

2.10.0-next.0

4 years ago

2.8.0

4 years ago

2.9.0-next.0

4 years ago

2.7.0

4 years ago

2.8.0-next.0

4 years ago

2.6.0

4 years ago

2.7.0-next.0

4 years ago

2.5.0

4 years ago

2.6.0-next.0

4 years ago

2.5.0-next.1

4 years ago

2.5.0-next.0

4 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

5 years ago

2.4.6

5 years ago

2.4.5

5 years ago

2.4.4

5 years ago

2.4.3

5 years ago

2.4.2

5 years ago

2.4.1

5 years ago

2.4.0

5 years ago

2.3.4

5 years ago

2.3.3

5 years ago

2.3.2

5 years ago

2.3.1

5 years ago

2.3.0

5 years ago

2.2.34

5 years ago

2.2.33

5 years ago

2.2.32

5 years ago

2.2.31

5 years ago

2.2.30

5 years ago

2.2.28

5 years ago

2.2.27

5 years ago

2.2.26

5 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

6 years ago

2.2.0

6 years ago

2.1.1

6 years ago

2.1.0

6 years ago

2.0.10

6 years ago

2.0.9

6 years ago

2.0.8

6 years ago

2.0.7

6 years ago

2.0.6

6 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

7 years ago

2.0.0-beta.1

7 years ago

2.0.0-beta.0

7 years ago

1.4.20

7 years ago

2.0.0-alpha.2

7 years ago

1.4.18-12

7 years ago

1.4.18-11

7 years ago

1.4.18-10

7 years ago

1.4.18-9

7 years ago

1.4.19

7 years ago

1.4.18-8

7 years ago

1.4.18-6

7 years ago

1.4.18-5

7 years ago

1.4.18-4

7 years ago

1.4.18-3

7 years ago

1.4.18-2

7 years ago

1.4.18-1

7 years ago

1.4.18

7 years ago

1.4.18-0

7 years ago

1.4.17

7 years ago

1.4.16

7 years ago

1.4.15

7 years ago

1.4.14

7 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

8 years ago

1.0.0-alpha.22

8 years ago

1.0.0-alpha19

8 years ago

1.0.0-alpha14

8 years ago