line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
6
|
|
|
6
|
|
113582
|
use 5.008; # utf8 |
|
6
|
|
|
|
|
23
|
|
|
6
|
|
|
|
|
251
|
|
2
|
6
|
|
|
6
|
|
37
|
use strict; |
|
6
|
|
|
|
|
12
|
|
|
6
|
|
|
|
|
228
|
|
3
|
6
|
|
|
6
|
|
31
|
use warnings; |
|
6
|
|
|
|
|
14
|
|
|
6
|
|
|
|
|
193
|
|
4
|
6
|
|
|
6
|
|
5582
|
use utf8; |
|
6
|
|
|
|
|
54
|
|
|
6
|
|
|
|
|
40
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
package CPAN::Changes::Markdown::Filter; |
7
|
|
|
|
|
|
|
$CPAN::Changes::Markdown::Filter::VERSION = '1.000000'; |
8
|
|
|
|
|
|
|
# ABSTRACT: a simple plug-in based, staged text filter for Markdown translation |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
|
22
|
6
|
|
|
6
|
|
6527
|
use Moo 1.000008 qw( with has ); |
|
6
|
|
|
|
|
162981
|
|
|
6
|
|
|
|
|
45
|
|
23
|
6
|
|
|
6
|
|
15848
|
use CPAN::Changes::Markdown::Filter::NodeUtil qw(mk_node_plaintext); |
|
6
|
|
|
|
|
15
|
|
|
6
|
|
|
|
|
40
|
|
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
with 'CPAN::Changes::Markdown::Role::Filter'; |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
has rules => ( |
47
|
|
|
|
|
|
|
is => ro =>, |
48
|
|
|
|
|
|
|
lazy => 1, |
49
|
|
|
|
|
|
|
builder => sub { |
50
|
0
|
|
|
0
|
|
0
|
[]; |
51
|
|
|
|
|
|
|
}, |
52
|
|
|
|
|
|
|
); |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
sub process { |
61
|
44
|
|
|
44
|
1
|
4988
|
my ( $self, $input ) = @_; |
62
|
44
|
|
|
|
|
156
|
my (@input) = ( mk_node_plaintext($input) ); |
63
|
44
|
|
|
|
|
5903
|
for my $rule ( @{ $self->rules } ) { |
|
44
|
|
|
|
|
898
|
|
64
|
54
|
|
|
|
|
2224
|
@input = $rule->filter(@input); |
65
|
|
|
|
|
|
|
} |
66
|
44
|
|
|
|
|
87
|
return join q{}, map { $_->to_s } @input; |
|
124
|
|
|
|
|
3455
|
|
67
|
|
|
|
|
|
|
} |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
1; |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
__END__ |