Debian Codegraph @

t/data/snippets/internal-links

raw
1 [name]
2 Internal section links
3
4 [input]
5 =head1 FOO
6
7 Some foo stuff with L</BAR> forward reference.
8
9 =head1 BAR
10
11 Some bar stuff linking to L</"FOO">.
12
13 =head1 FOO BAR
14
15 Can link to myself: L</FOO BAR>. But links to L</NOWHERE> should
16 disappear and links to L<Other::Module/FOO> should get the default text.
17
18 =cut
19
20 [output]
21 \heading[][]
22
23 \h2(#S1)[FOO]
24
25 Some foo stuff with \link[#S2][BAR] forward reference.
26
27 \h2(#S2)[BAR]
28
29 Some bar stuff linking to \link[#S1][FOO].
30
31 \h2(#S3)[FOO BAR]
32
33 Can link to myself: \link[#S3][FOO BAR]. But links to NOWHERE should
34 disappear and links to "FOO" in Other::Module should get the default text.
35
36 \signature