@@ -550,41 +550,38 @@ C<my $var = 1; say $var;>
550
550
551
551
=head2 Links
552
552
553
- To create a link enclose it in C<L< >>
554
-
555
- A vertical bar (optional) separates label and target.
556
-
557
- The target location can be an URL (first example) or a local Pod6 document
558
- (second example). Local file names are relative to the base of the project, not
559
- the current document.
553
+ To create a link enclose it in C<L< >>:
560
554
561
555
=for code :lang<rakudoc>
562
556
Raku homepage L<https://raku.org>
563
- L<Raku homepage|https://raku.org>
564
557
565
558
Raku homepage L<https://raku.org>
566
559
560
+ An optional vertical bar can be used to separate the label from the target.
561
+
562
+ =for code :lang<rakudoc>
567
563
L<Raku homepage|https://raku.org>
568
564
565
+ L<Raku homepage|https://raku.org>
566
+
567
+ Relative URLs are relative to the base of the project, so in this repository,
568
+ for example, we can link to another page in the C<language> folder. Here we
569
+ use an optional fragment to link to a heading:
570
+
569
571
=for code :lang<rakudoc>
570
- Structure L</language/about#Structure|/language/about#Structure>
571
572
L<Structure|/language/about#Structure>
572
573
573
- Structure L</language/about#Structure|/language/about#Structure>
574
-
575
574
L<Structure|/language/about#Structure>
576
575
577
- To create a link to a section in the same document:
576
+ One can also specify a link to a fragment in the current document:
577
+
578
578
=for code :lang<rakudoc>
579
- Comments L<#Comments>
580
579
L<Comments|#Comments>
581
580
582
- Comments L<#Comments>
583
-
584
581
L<Comments|#Comments>
585
582
586
- Alongside the normal way of describing a path, viz. C«L<Some reference|path/to/filename>», it is also
587
- possible to use the module-style notation, e.g., C«L<Some reference|path::to::filename>».
583
+ Finally, in addition to URL-style links (e.g. C«L<Some reference|path/to/filename>»),
584
+ module-style notation ( C«L<Some reference|path::to::filename>») also works .
588
585
589
586
=head2 Placement links
590
587
0 commit comments