The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Pod::Simple::Role::XHTML::WithExtraTargets - Add additional useful link targets

SYNOPSIS

  package MyPodParser;
  with 'Pod::Simple::Role::XHTML::WithAccurateTargets';

  my $parser = MyPodParser->new;
  $parser->output_string(\my $html);
  $parser->parse_string_document($pod);

DESCRIPTION

Adds multiple link targets to rendered headings to allow more useful linking.

Many headings for functions and methods include the function signature. This makes linking to the headings awkward. Link targets based on the first word of headings will be added to make linking easier. This form of linking is very common when linking to sections of perlfunc, allowing links like L<perlfunc/open>.

Also adds link targets compatible with standard Pod::Simple::XHTML.

SUPPORT

See MetaCPAN::Pod::XHTML for support and contact information.

AUTHORS

See MetaCPAN::Pod::XHTML for authors.

COPYRIGHT AND LICENSE

See MetaCPAN::Pod::XHTML for the copyright and license.