blib/lib/Kwiki/Markdown.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 10 | 11 | 90.9 |
branch | n/a | ||
condition | n/a | ||
subroutine | 4 | 6 | 66.6 |
pod | 0 | 3 | 0.0 |
total | 14 | 20 | 70.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Kwiki::Markdown; | ||||||
2 | 2 | 2 | 79278 | use v5.6.1; | |||
2 | 6 | ||||||
3 | 2 | 2 | 992 | use Text::Markdown 'markdown'; | |||
2 | 60309 | ||||||
2 | 125 | ||||||
4 | our $VERSION = '0.02'; | ||||||
5 | |||||||
6 | use constant | ||||||
7 | 2 | 210 | class_id => 'formatter', | ||||
8 | 2 | 2 | 13 | class_title => 'Kwiki Markdown Formatter'; | |||
2 | 5 | ||||||
9 | |||||||
10 | 0 | 0 | 0 | 0 | sub new { bless {} } | ||
11 | 0 | 0 | sub init {} | ||||
12 | |||||||
13 | sub text_to_html { | ||||||
14 | 1 | 1 | 0 | 1833 | my $self = shift; | ||
15 | 1 | 4 | return markdown(shift); | ||||
16 | } | ||||||
17 | |||||||
18 | __END__ |