Skip Menu |

This queue is for tickets about the Text-WikiFormat CPAN distribution.

Report information
The Basics
Id: 2171
Status: open
Priority: 0/
Queue: Text-WikiFormat

People
Owner: Nobody in particular
Requestors:
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



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>|; }
This issue should be closed. It works in 0.78, as demonstrated by the patch attached to RT issue #4700.