URL Expansions

I just deployed a small but helpful feature. As part of my efforts toward getting post by email ready I added in automatic expansion of URLs into their related embed codes. 

Instead of tracking down embed codes from other sites just try pasting the URL of the content on its own line in the body of your post. After you save we'll do our best to look up the URL and expand it into an embed code for you. It's great for stuff like video embeds, audio embeds and code snippets and works for a variety of sites like YouTube, Vimeo, Soundcloud, GitHub Gists, Twitter, and Pastebin.

So insert a URL into your post like this:

https://gist.github.com/brettg/5674325

And after you save you'll see the expanded version:

Try it out and let us know what you think. 

-brett

views

Tags

34 responses
Y Combinator upvoted this post.
A posthaven user upvoted this post.
Gecko Landmarks upvoted this post.
A posthaven user upvoted this post.
A posthaven user upvoted this post.
ZuDfunck upvoted this post.
A posthaven user upvoted this post.
Neat! But when I want a URL to appear WYSIWYG, how to I disable this auto-expansion?
Sean McLemon upvoted this post.
Call me old Fashioned. I thought I Understood Upvoting but now I don't think I do. I don't like Likes on facebook and I dont think I like Upvote either. How 'bout we just agree to put a comment in and leave it at that?
Is there any way to show only a single file from a multi-file gist using this method?
Patrick Kelly upvoted this post.
A posthaven user upvoted this post.
Doesn't seem to work for Flickr or am I doing something wrong?
Well, your example works as advertised, but I don't get it. When I paste a link to a youtube video url for instance, all I get is the link. It works, but it doesn't expand to show the movie on the page. Maybe I'm missing the point. Could you explain this feature in more detail please?
My mistake, I see that I didn't make the link active. Once I did that, the video showed on the page. I tried it with Flickr as well and it works as long as you make it an active link to the image url eg: https://www.flickr.com/photos/johncharlton/1391...
Is it possible to turn it off for specific URL in blogpost?
@Petr - The best way is probably to leave off the "http://" part. E.g. gist.github.com/brettg/5674325
A posthaven user upvoted this post.
15 visitors upvoted this post.