Migrate to Netlify Today

Netlify announces the next evolution of Gatsby Cloud. Learn more

ContactSign Up
Community Plugin
View plugin on GitHub

gatsby-remark-spotify

Embed a Spotify Track or Album to in your Markdown

npm

Install

  1. Install plugin to your site:
yarn add gatsby-remark-spotify
  1. Add following to your gatsby-config.js:
    plugins: [      
      {
        resolve: "gatsby-transformer-remark",
        options: {
          plugins: [
          {
            resolve: "gatsby-remark-spotify",
            options: {
              width: 800,
              height: 400, 
            }
          }
          ]
        }
      },
  1. Restart gatsby.

Usage


`spotify:https://open.spotify.com/track/5K2ZAJ7GezwevGYBuh9rct`
`spotify: https://open.spotify.com/album/2Fb37JsRMVPASJcl3wwDOa` 

License

MIT

© 2023 Gatsby, Inc.