line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Bootylicious::Plugin::MarkdownParser; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
457
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
25
|
|
4
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
21
|
|
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
5
|
use base 'Mojolicious::Plugin'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
77
|
|
7
|
|
|
|
|
|
|
|
8
|
1
|
|
|
1
|
|
6
|
use constant MARKDOWN => eval { require Text::Markdown; 1 }; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
293
|
|
|
0
|
|
|
|
|
0
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub register { |
11
|
1
|
|
|
1
|
1
|
32
|
my ($self, $app) = @_; |
12
|
|
|
|
|
|
|
|
13
|
1
|
50
|
|
|
|
7
|
return unless MARKDOWN; |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
$app->renderer->helpers->{add_parser} |
16
|
0
|
|
|
0
|
|
|
->(undef, md => sub { Text::Markdown->new->markdown($_[0]) }); |
|
0
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
1; |