Forum: Ruby on Rails auto_link fails to handle tilda's (~) and markdown fails to

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Sam J. (Guest)
on 2005-12-16 03:08
(Received via mailing list)
Hi There,

So I was just having some trouble with auto_link and markdown.

Specfically auto_link was failing to handle urls with tildas in them (~)
e.g.

http://www.hawaii.edu/~name/index.html

and markdown couldn't handle an acute accent (`) e.g.

Hawai`i

It seems that acute accents (or backticks) in Markdown signify code
segments, and it seems there's an open ticket for this:

http://www.deveiate.org/projects/BlueCloth/ticket/24

However, regarding auto_link I found where I could fix this in
actionpack-1.11.0\lib\action_view\helpersTextHelper.rb

changing the following line:

([\w]+[=?&\/.-]?)* # url segment
to this

([\w~]+[=?&\/.-]?)* # url segment

I can see that there are a number of tickets relating to auto_link:

http://dev.rubyonrails.org/search?q=auto_link&wiki...

However I am unclear how to submit this as a fix. Any guidance would be
greatly appreciated.

I'd also appreciate any pointers on how to run the TextHelper tests to
ensure I haven't broken anything else

CHEERS> SAM
This topic is locked and can not be replied to.