<div class="gmail_quote">On 13 April 2010 12:38, Kenneth Lee <span dir="ltr"><<a href="mailto:kenfodder@gmail.com">kenfodder@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi Guys,<br>
<br>Is there a Gem or library that will allow me to do this easily and in a reusable way. If so I will go into banana dance mode!<br>
<br>
Ideally I want to simply gem install something, then in simply do linkify(sometext) possible with a block to customize the replacement for html classes etc... and some config or options to say whether the http(s) part must exist, must have this set of subdomains, must not be a top-level, all these fancy options to correctly match it.<br>
</blockquote><div><br></div>Would redcloth / blueclopth do it? I don't know off the top of my head if textile/markdown require syntax to mark up links or not. But it could be worth a go. Probably wouldn't take the block to customise, but they might be a good starting point?</div>
<div class="gmail_quote"><br></div><div class="gmail_quote">Also, perhaps a twitter tweet parser? <a href="http://github.com/madebymany/tweetparser">http://github.com/madebymany/tweetparser</a></div><div class="gmail_quote">
<br></div><div class="gmail_quote">Muz</div>