line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# ABSTRACT: StaticVolt convertor for markdown |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package StaticVolt::Convertor::Markdown; |
4
|
|
|
|
|
|
|
{ |
5
|
|
|
|
|
|
|
$StaticVolt::Convertor::Markdown::VERSION = '1.00'; |
6
|
|
|
|
|
|
|
} |
7
|
|
|
|
|
|
|
|
8
|
4
|
|
|
4
|
|
21
|
use strict; |
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
121
|
|
9
|
4
|
|
|
4
|
|
20
|
use warnings; |
|
4
|
|
|
|
|
7
|
|
|
4
|
|
|
|
|
96
|
|
10
|
|
|
|
|
|
|
|
11
|
4
|
|
|
4
|
|
17
|
use base qw( StaticVolt::Convertor ); |
|
4
|
|
|
|
|
7
|
|
|
4
|
|
|
|
|
251
|
|
12
|
|
|
|
|
|
|
|
13
|
4
|
|
|
4
|
|
4590
|
use Text::Markdown qw( markdown ); |
|
4
|
|
|
|
|
201916
|
|
|
4
|
|
|
|
|
542
|
|
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub convert { |
16
|
4
|
|
|
4
|
1
|
12
|
my $content = shift; |
17
|
4
|
|
|
|
|
22
|
return markdown $content; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
__PACKAGE__->register(qw/ markdown md mkd /); |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
1; |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
__END__ |