While manpages are named `L<lei-COMMAND(1)>', `lei COMMAND'
can be worth linkifying for ease-of-navigation, too.
use warnings;
use PublicInbox::Linkify;
use PublicInbox::Hval qw(ascii_html);
use warnings;
use PublicInbox::Linkify;
use PublicInbox::Hval qw(ascii_html);
for (qw[lei(1)
lei-add-external(1)
lei-add-watch(1)
for (qw[lei(1)
lei-add-external(1)
lei-add-watch(1)
my ($n) = (/([\w\-\.]+)/);
$xurls{$_} = "$n.html";
$xurls{$n} = "$n.html";
my ($n) = (/([\w\-\.]+)/);
$xurls{$_} = "$n.html";
$xurls{$n} = "$n.html";
+ /\Alei-(.+?)\(1\)\z/ and $xurls{"lei $1"} = "$n.html";
}
for (qw[make(1) flock(2) setrlimit(2) vfork(2) tmpfs(5) inotify(7) unix(7)
}
for (qw[make(1) flock(2) setrlimit(2) vfork(2) tmpfs(5) inotify(7) unix(7)
if ($title =~ /([\w\.\-]+)/) {
delete $xurls{$1};
}
if ($title =~ /([\w\.\-]+)/) {
delete $xurls{$1};
}
+ if ($title =~ /\blei-([\w\-]+)\b/) {
+ delete $xurls{"lei $1"};
+ }
}
$title = ascii_html($title);
my $l = PublicInbox::Linkify->new;
}
$title = ascii_html($title);
my $l = PublicInbox::Linkify->new;