gatsby-remark-embed-video-lite
v0.1.3
Published
Embed Videos (Youtube, Vimeo) in Gatsby via Markdown, using lite web components
Downloads
10
Maintainers
Readme
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