1

I know this isn't really that important but I thought it would be fun if you could embed a spotify to your markdown. I tried pasting this into the README.md-file but it didn't transform into a widget:

<iframe src="https://open.spotify.com/embed/track/1UgMLFmeVyphjePcN1TNpq" width="300" height="380" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe>

Can somebody tell me if it's possible to embed this using markdown?

Phil
  • 151
  • 12

2 Answers2

1

It's currently not possible to use iframes inside of your README on GitHub. This question has to do with the same underlying issue you're having. In short, iframes are not on the list of allowed HTML tags. You can see which tags are allowed here: https://github.com/github/markup/issues/245#issuecomment-357613929

Abir Taheer
  • 1,818
  • 1
  • 7
  • 25
0

You can just put this line of code in your README file:

[![Spotify](https://spotify-github-readme.vercel.app/api/spotify)](https://open.spotify.com/collection/tracks)

And it will display the Spotify songs in your README file