line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Markdent::Event::HTMLTag; |
2
|
|
|
|
|
|
|
|
3
|
34
|
|
|
34
|
|
274
|
use strict; |
|
34
|
|
|
|
|
85
|
|
|
34
|
|
|
|
|
1114
|
|
4
|
34
|
|
|
34
|
|
198
|
use warnings; |
|
34
|
|
|
|
|
79
|
|
|
34
|
|
|
|
|
988
|
|
5
|
34
|
|
|
34
|
|
202
|
use namespace::autoclean; |
|
34
|
|
|
|
|
81
|
|
|
34
|
|
|
|
|
262
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = '0.38'; |
8
|
|
|
|
|
|
|
|
9
|
34
|
|
|
34
|
|
3263
|
use Markdent::Types; |
|
34
|
|
|
|
|
101
|
|
|
34
|
|
|
|
|
311
|
|
10
|
|
|
|
|
|
|
|
11
|
34
|
|
|
34
|
|
867153
|
use Moose; |
|
34
|
|
|
|
|
97
|
|
|
34
|
|
|
|
|
356
|
|
12
|
34
|
|
|
34
|
|
238919
|
use MooseX::StrictConstructor; |
|
34
|
|
|
|
|
91
|
|
|
34
|
|
|
|
|
293
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
has tag => ( |
15
|
|
|
|
|
|
|
is => 'ro', |
16
|
|
|
|
|
|
|
isa => t('Str'), |
17
|
|
|
|
|
|
|
required => 1, |
18
|
|
|
|
|
|
|
); |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
has attributes => ( |
21
|
|
|
|
|
|
|
is => 'ro', |
22
|
|
|
|
|
|
|
isa => t('HashRef'), |
23
|
|
|
|
|
|
|
default => sub { {} }, |
24
|
|
|
|
|
|
|
); |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
with 'Markdent::Role::Event' => { event_class => __PACKAGE__ }; |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
__PACKAGE__->meta()->make_immutable(); |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
1; |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
# ABSTRACT: An event for an inline self-closing HTML tag |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
__END__ |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=pod |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=encoding UTF-8 |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head1 NAME |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
Markdent::Event::HTMLTag - An event for an inline self-closing HTML tag |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 VERSION |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
version 0.38 |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=head1 DESCRIPTION |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
This class represents the an inline self-closing HTML tag. |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=head1 ATTRIBUTES |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
This class has the following attributes: |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=head2 tag |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
The tag that is starting. |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=head2 attributes |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
A hash reference of attributes as key/value pairs. An attribute without a |
63
|
|
|
|
|
|
|
value will have a value of C<undef> in the hash reference. |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=head1 ROLES |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
This class does the L<Markdent::Role::Event> role. |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=head1 BUGS |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
See L<Markdent> for bug reporting details. |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
Bugs may be submitted at L<https://github.com/houseabsolute/Markdent/issues>. |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
I am also usually active on IRC as 'autarch' on C<irc://irc.perl.org>. |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
=head1 SOURCE |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
The source code repository for Markdent can be found at L<https://github.com/houseabsolute/Markdent>. |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
=head1 AUTHOR |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
Dave Rolsky <autarch@urth.org> |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
This software is copyright (c) 2020 by Dave Rolsky. |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
90
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
The full text of the license can be found in the |
93
|
|
|
|
|
|
|
F<LICENSE> file included with this distribution. |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
=cut |