Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ntwcklng/gatsby-remark-embed-youtube


https://github.com/ntwcklng/gatsby-remark-embed-youtube

gatsby gatsby-plugin

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# gatsby-remark-embed-youtube
Embed a Youtube Video in your Markdown

## Install
1. Install plugin to your site:

```bash
yarn add gatsby-remark-embed-youtube
```

2. Add following to your `gatsby-config.js`:
```js
plugins: [
{
resolve: "gatsby-transformer-remark",
options: {
plugins: [
{
resolve: "gatsby-remark-embed-youtube",
options: {
width: 800,
height: 400
}
}
]
}
},
```

Note: if you also rely on `gatsby-remark-responsive-iframe`, you have to define the embed-youtube plugin first:
``` js
plugins: [
"gatsby-remark-embed-youtube",
"gatsby-remark-responsive-iframe"
]
```

3. Restart gastby.

## Usage

```markdown
# Look at this Video:

`youtube:https://www.youtube.com/embed/2Xc9gXyf2G4`

```

## License

MIT