Get unlimited public & private packages + team-based management with npm Teams.Learn more »

@weknow/gatsby-remark-twitch

0.1.0 • Public • Published

gatsby-remark-twitch

Embed Twitch videos/clips/channels in Gatsby markdown

Install

npm install --save @weknow/gatsby-remark-twitch

How to use

// In your gatsby-config.js
plugins: [
  {
    resolve: "gatsby-transformer-remark",
    options: {
      plugins: [
        {
          resolve:"@weknow/gatsby-remark-twitch",
          options: {
            width: 800,
            height: 400
          }
        }
      ]
    }
  }
];

Usage

Blog post title
 
This is an example of embedding twitch media.
Add any markdown as you normally do, and then insert a valid
twitch link anywhere to automatically transform it into an embed
 
#### Twitch video
 
https://www.twitch.tv/videos/347319713
 
#### Twitch clip
 
https://www.twitch.tv/xisuma/clip/MagnificentOilyUdonTTours
 
#### Twitch channel
 
https://www.twitch.tv/xisuma
 
 

NOTE: Make sure to copy the link instead of embed code.

How this looks like

View a live demo here

License

MIT

Install

npm i @weknow/gatsby-remark-twitch

DownloadsWeekly Downloads

3

Version

0.1.0

License

MIT

Unpacked Size

3.72 kB

Total Files

3

Last publish

Collaborators

  • avatar
  • avatar
  • avatar
  • avatar