line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Markdent::Event::StartLink; |
2
|
|
|
|
|
|
|
|
3
|
35
|
|
|
35
|
|
266
|
use strict; |
|
35
|
|
|
|
|
86
|
|
|
35
|
|
|
|
|
1162
|
|
4
|
35
|
|
|
35
|
|
194
|
use warnings; |
|
35
|
|
|
|
|
95
|
|
|
35
|
|
|
|
|
1060
|
|
5
|
35
|
|
|
35
|
|
197
|
use namespace::autoclean; |
|
35
|
|
|
|
|
78
|
|
|
35
|
|
|
|
|
318
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = '0.39'; |
8
|
|
|
|
|
|
|
|
9
|
35
|
|
|
35
|
|
3373
|
use Markdent::Types; |
|
35
|
|
|
|
|
79
|
|
|
35
|
|
|
|
|
312
|
|
10
|
|
|
|
|
|
|
|
11
|
35
|
|
|
35
|
|
856469
|
use Moose; |
|
35
|
|
|
|
|
112
|
|
|
35
|
|
|
|
|
385
|
|
12
|
35
|
|
|
35
|
|
242610
|
use MooseX::StrictConstructor; |
|
35
|
|
|
|
|
99
|
|
|
35
|
|
|
|
|
328
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
has uri => ( |
15
|
|
|
|
|
|
|
is => 'ro', |
16
|
|
|
|
|
|
|
isa => t('Str'), |
17
|
|
|
|
|
|
|
required => 1, |
18
|
|
|
|
|
|
|
); |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
has title => ( |
21
|
|
|
|
|
|
|
is => 'ro', |
22
|
|
|
|
|
|
|
isa => t('Str'), |
23
|
|
|
|
|
|
|
predicate => 'has_title', |
24
|
|
|
|
|
|
|
); |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
has id => ( |
27
|
|
|
|
|
|
|
is => 'ro', |
28
|
|
|
|
|
|
|
isa => t('Str'), |
29
|
|
|
|
|
|
|
predicate => 'has_id', |
30
|
|
|
|
|
|
|
); |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
has is_implicit_id => ( |
33
|
|
|
|
|
|
|
is => 'ro', |
34
|
|
|
|
|
|
|
isa => t('Bool'), |
35
|
|
|
|
|
|
|
default => 0, |
36
|
|
|
|
|
|
|
); |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
with( |
39
|
|
|
|
|
|
|
'Markdent::Role::Event' => { event_class => __PACKAGE__ }, |
40
|
|
|
|
|
|
|
'Markdent::Role::BalancedEvent', |
41
|
|
|
|
|
|
|
); |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
1; |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
# ABSTRACT: An event for the start of a link |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
__END__ |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=pod |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=encoding UTF-8 |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=head1 NAME |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
Markdent::Event::StartLink - An event for the start of a link |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=head1 VERSION |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
version 0.39 |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=head1 DESCRIPTION |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
This class represents the start of a link. |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=head1 ATTRIBUTES |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
This class has the following attributes: |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=head2 uri |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
The uri for the link. |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
=head2 title |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
The link title. This is optional. |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
=head2 id |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
The link's id. This is optional. |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
=head2 is_implicit_id |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
This will be true if the link's id was not specified explicitly in the |
86
|
|
|
|
|
|
|
Markdown text. |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
=head1 ROLES |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
This class does the L<Markdent::Role::Event> and |
91
|
|
|
|
|
|
|
L<Markdent::Role::BalancedEvent> roles. |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
=head1 BUGS |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
See L<Markdent> for bug reporting details. |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
Bugs may be submitted at L<https://github.com/houseabsolute/Markdent/issues>. |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
I am also usually active on IRC as 'autarch' on C<irc://irc.perl.org>. |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
=head1 SOURCE |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
The source code repository for Markdent can be found at L<https://github.com/houseabsolute/Markdent>. |
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
=head1 AUTHOR |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
Dave Rolsky <autarch@urth.org> |
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
110
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
This software is copyright (c) 2021 by Dave Rolsky. |
112
|
|
|
|
|
|
|
|
113
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
114
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
115
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
The full text of the license can be found in the |
117
|
|
|
|
|
|
|
F<LICENSE> file included with this distribution. |
118
|
|
|
|
|
|
|
|
119
|
|
|
|
|
|
|
=cut |