Subject: | let [http://foo.com] make a link to foo.com, not a node called that |
Allow for real URI's to be embedded, as in
[http://perlmonks.com/index.pl?node=ybiC]
[ftp://perlmonks.com|perlmonks ftp]
...
Just steal $RE{URI}{-keep} from use Regexp::Common;
and modify make_html_link like so
sub make_html_link
{
my ($link, $opts) = @_;
$opts ||= {};
my $title;
($link, $title) = split(/\|/, $link, 2) if $opts->{extended};
$title ||= $link;
$link = uri_escape( $link )
unless $link =~ /^$RE{URI}{-keep}\z/;
my $prefix = $opts->{prefix} || '';
return qq|<a href="$prefix$link">$title</a>|;
}