Embed a Spotify Track or Album to in your Markdown
- Install plugin to your site:
yarn add gatsby-remark-spotify
- Add following to your
gatsby-config.js
:
plugins: [
{
resolve: "gatsby-transformer-remark",
options: {
plugins: [
{
resolve: "gatsby-remark-spotify",
options: {
width: 800,
height: 400,
}
}
]
}
},
- Restart gatsby.
`spotify:https://open.spotify.com/track/5K2ZAJ7GezwevGYBuh9rct`
`spotify: https://open.spotify.com/album/2Fb37JsRMVPASJcl3wwDOa`
MIT