Community Plugin
View plugin on GitHubgatsby-remark-embed-video-lite
gatsby-remark-embed-video-lite 📺 Embed a Youtube Video in your Markdown using high-performance web components |
Embed a Youtube or Vimeo video in your Markdown, using high-performance web components
Inspired by gatsby-remark-embed-video
Install
- Install plugin to your site:
npm i gatsby-remark-embed-video-lite
- Add following to your
gatsby-config.js
:
plugins: [
{
resolve: "gatsby-transformer-remark",
options: {
plugins: [
{
resolve: "gatsby-remark-embed-video-lite",
}
]
}
},
Uses the following components under the hood:
- https://www.npmjs.com/package/@justinribeiro/lite-youtube
- https://www.npmjs.com/package/@slightlyoff/lite-vimeo
- Restart gatsby.
Usage
# Look at this Video:
`youtube: https://www.youtube.com/watch?v=2Xc9gXyf2G4`
`youtube: 2Xc9gXyf2G4`
`vimeo: https://vimeo.com/5299404`
`vimeo: 5299404`
License
MIT