line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Text::Livedoor::Wiki::Plugin::Block::UL; |
2
|
|
|
|
|
|
|
|
3
|
5
|
|
|
5
|
|
32
|
use warnings; |
|
5
|
|
|
|
|
13
|
|
|
5
|
|
|
|
|
165
|
|
4
|
5
|
|
|
5
|
|
30
|
use strict; |
|
5
|
|
|
|
|
12
|
|
|
5
|
|
|
|
|
246
|
|
5
|
5
|
|
|
5
|
|
27
|
use base qw(Text::Livedoor::Wiki::Plugin::Base::Block::List); |
|
5
|
|
|
|
|
11
|
|
|
5
|
|
|
|
|
657
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
sub check { |
8
|
95
|
|
|
95
|
1
|
155
|
my $self = shift; |
9
|
95
|
|
|
|
|
143
|
my $line = shift; |
10
|
95
|
|
|
|
|
131
|
my $args = shift; |
11
|
95
|
|
|
|
|
162
|
my $on_next = $args->{on_next}; |
12
|
95
|
|
|
|
|
167
|
my $id = $args->{id}; |
13
|
|
|
|
|
|
|
|
14
|
95
|
100
|
|
|
|
337
|
if( my( $mark ) = $line =~ /^(-{1,3})[^-]/ ) { |
15
|
12
|
|
|
|
|
17
|
my $level = length $mark ; |
16
|
12
|
100
|
|
|
|
33
|
unless ( $on_next ) { |
17
|
7
|
|
|
|
|
93
|
$line =~ s/^-{$level}//; |
18
|
|
|
|
|
|
|
} |
19
|
12
|
|
|
|
|
79
|
return { id => $id , level => $level , line => $line }; |
20
|
|
|
|
|
|
|
} |
21
|
83
|
|
|
|
|
470
|
return; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub get { |
25
|
2
|
|
|
2
|
1
|
4
|
my $self = shift; |
26
|
2
|
|
|
|
|
11
|
my $block = shift; |
27
|
2
|
|
|
|
|
4
|
my $inline = shift; |
28
|
2
|
|
|
|
|
5
|
my $items = shift; |
29
|
2
|
|
|
|
|
26
|
$self->list($inline, $items,'ul'); |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
1; |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=head1 NAME |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
Text::Livedoor::Wiki::Plugin::Block::UL - UL Block Plugin |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=head1 DESCRIPTION |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
unordered list |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=head1 SYNOPSIS |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
o hoge |
45
|
|
|
|
|
|
|
-- hogehoge |
46
|
|
|
|
|
|
|
--- hy mom |
47
|
|
|
|
|
|
|
- hoge |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=head1 FUNCTION |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=head2 check |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=head2 get |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=head1 AUTHOR |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
polocky |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=cut |