Skip to content

Commit

Permalink
remove use of Pod::POM and instead use Pod::Simple::JustPod
Browse files Browse the repository at this point in the history
  • Loading branch information
haarg committed May 6, 2024
1 parent 9d7af29 commit 5411416
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 51 deletions.
1 change: 0 additions & 1 deletion cpanfile
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ requires 'Plack::Middleware::ServerStatus::Lite';
requires 'Plack::Middleware::Session';
requires 'Plack::Session::Store';
requires 'Pod::Markdown', '3.300';
requires 'Pod::POM';
requires 'Pod::Simple', '3.43';
requires 'Pod::Simple::XHTML', '3.24';
requires 'Pod::Text', '4.14';
Expand Down
43 changes: 0 additions & 43 deletions cpanfile.snapshot
Original file line number Diff line number Diff line change
Expand Up @@ -6781,49 +6781,6 @@ DISTRIBUTIONS
perl 5.008
strict 0
warnings 0
Pod-POM-2.01
pathname: N/NE/NEILB/Pod-POM-2.01.tar.gz
provides:
Pod::POM 2.01
Pod::POM::Constants 2.01
Pod::POM::Node 2.01
Pod::POM::Node::Begin 2.01
Pod::POM::Node::Code 2.01
Pod::POM::Node::Content 2.01
Pod::POM::Node::For 2.01
Pod::POM::Node::Head1 2.01
Pod::POM::Node::Head2 2.01
Pod::POM::Node::Head3 2.01
Pod::POM::Node::Head4 2.01
Pod::POM::Node::Item 2.01
Pod::POM::Node::Over 2.01
Pod::POM::Node::Pod 2.01
Pod::POM::Node::Sequence 2.01
Pod::POM::Node::Text 2.01
Pod::POM::Node::Verbatim 2.01
Pod::POM::Nodes 2.01
Pod::POM::Test 2.01
Pod::POM::View 2.01
Pod::POM::View::HTML 2.01
Pod::POM::View::Pod 2.01
Pod::POM::View::Text 2.01
requirements:
Encode 0
Exporter 0
ExtUtils::MakeMaker 0
File::Basename 0
FindBin 0
Getopt::Long 0
Getopt::Std 0
Text::Wrap 0
constant 0
lib 0
overload 0
parent 0
perl 5.006
strict 0
vars 0
warnings 0
Pod-Parser-1.67
pathname: M/MA/MAREKR/Pod-Parser-1.67.tar.gz
provides:
Expand Down
11 changes: 4 additions & 7 deletions lib/MetaCPAN/Pod/Renderer.pm
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ use MetaCPAN::Moose;
use MetaCPAN::Pod::XHTML;
use MetaCPAN::Types::TypeTiny qw( Uri );
use Pod::Markdown;
use Pod::POM ();
use Pod::POM::View::Pod;
use Pod::Text ();
use Pod::Simple::JustPod ();
use Pod::Text ();

has perldoc_url_prefix => (
is => 'ro',
Expand All @@ -34,7 +33,7 @@ sub markdown_renderer {

sub pod_renderer {
my $self = shift;
return Pod::POM->new;
return Pod::Simple::JustPod->new;
}

sub text_renderer {
Expand Down Expand Up @@ -83,9 +82,7 @@ sub to_pod {
my $self = shift;
my $source = shift;

my $renderer = $self->pod_renderer;
my $pom = $renderer->parse_text($source);
return Pod::POM::View::Pod->print($pom);
return $self->_generic_render( $self->pod_renderer, $source );
}

sub _generic_render {
Expand Down

0 comments on commit 5411416

Please sign in to comment.