File Coverage

blib/lib/Markdent/Role/SpanParser.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 16 16 100.0


line stmt bran cond sub pod time code
1             package Markdent::Role::SpanParser;
2              
3 34     34   25034 use strict;
  34         98  
  34         1150  
4 34     34   234 use warnings;
  34         84  
  34         1015  
5 34     34   219 use namespace::autoclean;
  34         90  
  34         265  
6              
7             our $VERSION = '0.38';
8              
9 34     34   3126 use Moose::Role;
  34         91  
  34         335  
10              
11             with 'Markdent::Role::AnyParser';
12              
13             requires 'parse_block';
14              
15             1;
16              
17             # ABSTRACT: A role for span parsers
18              
19             __END__
20              
21             =pod
22              
23             =encoding UTF-8
24              
25             =head1 NAME
26              
27             Markdent::Role::SpanParser - A role for span parsers
28              
29             =head1 VERSION
30              
31             version 0.38
32              
33             =head1 DESCRIPTION
34              
35             This role implements behavior shared by all span parsers.
36              
37             =head1 REQUIRED METHODS
38              
39             =over 4
40              
41             =item * $parser->parse_block(\$text)
42              
43             This method takes a scalar reference to a markdown block and parses it for
44             span-level markup.
45              
46             =back
47              
48             =head1 ROLES
49              
50             This role does the L<Markdent::Role::AnyParser> and
51             L<Markdent::Role::DebugPrinter> roles.
52              
53             =head1 BUGS
54              
55             See L<Markdent> for bug reporting details.
56              
57             Bugs may be submitted at L<https://github.com/houseabsolute/Markdent/issues>.
58              
59             I am also usually active on IRC as 'autarch' on C<irc://irc.perl.org>.
60              
61             =head1 SOURCE
62              
63             The source code repository for Markdent can be found at L<https://github.com/houseabsolute/Markdent>.
64              
65             =head1 AUTHOR
66              
67             Dave Rolsky <autarch@urth.org>
68              
69             =head1 COPYRIGHT AND LICENSE
70              
71             This software is copyright (c) 2020 by Dave Rolsky.
72              
73             This is free software; you can redistribute it and/or modify it under
74             the same terms as the Perl 5 programming language system itself.
75              
76             The full text of the license can be found in the
77             F<LICENSE> file included with this distribution.
78              
79             =cut