vmg / rinku

Autolinking. Ruby. Yes, that's pretty much it.
ISC License
599 stars 67 forks source link

Extract_URLs method #33

Closed paladini closed 8 years ago

paladini commented 11 years ago

Hello guys,

I want suggest a thing that can improve a lot the "Rinku" gem. I try to find this in this gem, but I think it doesn't exist yet.

What you think about add a method to extract urls, like Twitter-Text gem does with "extract_urls"? It will be very useful and can increment the usage of this gem.

Thanks for attention, A hug, Fernando P.

rdetert commented 10 years ago

+1, it would be good to have a way to be able to convert the links to our own shortened versions.

kivikakk commented 8 years ago

I think this is a bit out of scope of Rinku. You can approximate this usage by passing a block to Rinku.auto_link, but in general you might find a different library is more appropriate for this use case.