| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Markdent::Role::SpanParser; |
|
2
|
|
|
|
|
|
|
|
|
3
|
35
|
|
|
35
|
|
28859
|
use strict; |
|
|
35
|
|
|
|
|
98
|
|
|
|
35
|
|
|
|
|
1242
|
|
|
4
|
35
|
|
|
35
|
|
233
|
use warnings; |
|
|
35
|
|
|
|
|
89
|
|
|
|
35
|
|
|
|
|
1128
|
|
|
5
|
35
|
|
|
35
|
|
233
|
use namespace::autoclean; |
|
|
35
|
|
|
|
|
85
|
|
|
|
35
|
|
|
|
|
283
|
|
|
6
|
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = '0.40'; |
|
8
|
|
|
|
|
|
|
|
|
9
|
35
|
|
|
35
|
|
3346
|
use Moose::Role; |
|
|
35
|
|
|
|
|
102
|
|
|
|
35
|
|
|
|
|
351
|
|
|
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.40 |
|
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) 2021 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 |