line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Text::Livedoor::Wiki::Plugin::Function::Superscript; |
2
|
|
|
|
|
|
|
|
3
|
11
|
|
|
11
|
|
68
|
use warnings; |
|
11
|
|
|
|
|
23
|
|
|
11
|
|
|
|
|
375
|
|
4
|
11
|
|
|
11
|
|
63
|
use strict; |
|
11
|
|
|
|
|
18
|
|
|
11
|
|
|
|
|
353
|
|
5
|
11
|
|
|
11
|
|
60
|
use base qw/Text::Livedoor::Wiki::Plugin::Function/; |
|
11
|
|
|
|
|
18
|
|
|
11
|
|
|
|
|
786
|
|
6
|
|
|
|
|
|
|
__PACKAGE__->function_name('sup'); |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub process { |
9
|
4
|
|
|
4
|
1
|
10
|
my ( $class, $inline, $data ) = @_; |
10
|
4
|
|
|
|
|
9
|
my $value = $data->{value}; |
11
|
4
|
|
|
|
|
19
|
$value = $inline->parse( $value ); |
12
|
4
|
|
|
|
|
29
|
return "$value"; |
13
|
|
|
|
|
|
|
} |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
1; |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
=head1 NAME |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
Text::Livedoor::Wiki::Plugin::Function::Superscript - Superscript Function Plugin |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
=head1 DESCRIPTION |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
write superscript text. |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=head1 SYNOPSIS |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
&sup(){text here here here}; |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=head1 FUNCTION |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head2 process |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=head1 AUTHOR |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
polocky |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=cut |