I'm really loving Pagecord at the minute but one area it lacked was support for embedding music or video. I like sharing media so I wanted to solve this. I've ventured down this 🐰🕳 before when I built Blogline (⚰️), but my approach back then was to wrangle Trix into supporting a variety of native embeds. Clever, right?  Well I got it working, but it took for-ev-errrrr. 

I didn't want to resurrect that code then spend days/weeks trying to get it to work. Instead, I've just written (with help from Copilot, admittedly) a single Stimulus controller that replaces Spotify and YouTube links with embeds on page load. Seems to work just fine. Simple thinking is always the best thinking.

Here's an album I've been listening to on rotation this week.

https://open.spotify.com/album/5ooCZHfIlIjxF8Lhu4E9qT?si=wzbthnWcSYWa1zYXn448_Q