20 |
use Data::Dump qw/dump/; |
use Data::Dump qw/dump/; |
21 |
use Pod::Find qw/pod_where/; |
use Pod::Find qw/pod_where/; |
22 |
|
|
23 |
sub markup { |
sub as_markup { |
24 |
my $self = shift; |
my $self = shift; |
25 |
my $class = $self->class; |
my $class = $self->class; |
26 |
use Pod::Simple::HTML; |
use Pod::Simple::HTML; |
41 |
$body =~ s!</ul>!</ul></li>!; |
$body =~ s!</ul>!</ul></li>!; |
42 |
$body =~ s!<p></p>!!; |
$body =~ s!<p></p>!!; |
43 |
$body =~ s!__index__!index!g; |
$body =~ s!__index__!index!g; |
44 |
|
return $body unless wantarray; |
45 |
return { |
return { |
46 |
title => $class, |
title => $class, |
47 |
body => $body, |
body => $body, |