| 1 | package Text::Livedoor::Wiki::Plugin::Function::Superscript; | ||
| 2 | |||
| 3 | 11 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 11 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 11 | ▶ | use base qw/Text::Livedoor::Wiki::Plugin::Function/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 11 | __PACKAGE__->function_name('sup'); | |
| 7 | |||
| 8 | 4 | ▶ | sub process { |
|
Subroutine
process: called CC=1 SCAR=0.0
Pod
documented
| |||
| 9 | 4 | my ( $class, $inline, $data ) = @_; | |
| 10 | 4 | my $value = $data->{value}; | |
| 11 | 4 | $value = $inline->parse( $value ); | |
| 12 | 4 | return "<sup>$value</sup>"; | |
| 13 | } | ||
| 14 | |||
| 15 | 11 | 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 | ||