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::HTML5 - Produce HTML5 content rather than XHTML

SYNOPSIS

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

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

DESCRIPTION

Pod::Simple::XHTML is the current state of the art formatter for producing HTML from Pod. However, it is meant to produce XHTML, which is not the preferred format to use at this time. When producing a full page including headers, the self closing tags in the header will include a /> on some tags. While this is valid HTML, it is not the preferred format.

Using this role will remove the trailing /> from the header tags, change the default character set to UTF-8, include a <!DOCTYPE html> doctype, remove the id from the index, and wrap the index with a <nav> </nav> element.

SUPPORT

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

AUTHORS

See MetaCPAN::Pod::HTML for authors.

COPYRIGHT AND LICENSE

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