From 005be7eb52d0e6850b08b884c5e21e2882006503 Mon Sep 17 00:00:00 2001 From: Pali Date: Thu, 21 Jun 2018 09:48:06 +0200 Subject: [PATCH] POD: Create anchor for every =item directive Setting anchor_items to true is needed for creating link to specific =item directive. By default Pod::Simple::XHTML module does not enable it. Webpage https://metacpan.org/ for POD documentation has it already enabled and linking to =item directive is working fine. Lot of POD documents already link to =item directives and without setting anchor_items to true documents are semi-broken on GitHub. --- lib/github/commands/pod2html | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/github/commands/pod2html b/lib/github/commands/pod2html index faf46e4a..aaed6022 100755 --- a/lib/github/commands/pod2html +++ b/lib/github/commands/pod2html @@ -7,6 +7,7 @@ my $p = Pod::Simple::XHTML->new; $p->html_header(''); $p->html_footer(''); $p->perldoc_url_prefix('https://metacpan.org/pod/'); +$p->anchor_items(1); $p->strip_verbatim_indent(sub { my $lines = shift; (my $indent = $lines->[0]) =~ s/\S.*//;