phpBB.pm untested

filter: Statementstmt 0.0% 0 / 28 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 8 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 37 CC 1 SCAR 6.9
CC
1
Cov
0%
convert
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Markdown::phpBB;
2  
3 use 5.010;
4 use strict;
5 use warnings;
6 use autodie;
7 use Moose;
8  
9 # ABSTRACT: Turn markdown into phpBB code
10 our $VERSION = '0.02'; # VERSION
11  
12 use Markdent::Parser;
13 use Markdown::phpBB::Handler;
14  
15  
16 my $handler = Markdown::phpBB::Handler->new;
17  
18 my $parser = Markdent::Parser->new(
19 handler => $handler,
20 dialect => 'GitHub',
21 );
22  
23  
24 sub convert {
25 my ($self, $text) = @_;
26  
27 $parser->parse(markdown => $text);
28  
29 return $handler->result;
30 }
31  
32 1;
33  
34 __END__