@@ -35,8 +35,6 @@ const getDefaultTagStructureForMode = (mode) => {
35
35
// "namepath" (e.g., param can't define a namepath)
36
36
37
37
// Once checking inline tags:
38
- // Todo: Re: `typeOrNameRequired`, `@link` (or @linkcode/@linkplain) seems
39
- // to require a namepath OR URL and might be checked as such.
40
38
// Todo: Should support a `tutorialID` type (for `@tutorial` block and
41
39
// inline)
42
40
@@ -461,6 +459,65 @@ const getDefaultTagStructureForMode = (mode) => {
461
459
] ) ,
462
460
] ,
463
461
462
+ [
463
+ 'link' , new Map ( [
464
+ // Signature seems to require a namepath OR URL and might be checked as such.
465
+ [
466
+ 'nameContents' , 'namepath-referencing' ,
467
+ ] ,
468
+
469
+ // "namepath"
470
+ [
471
+ 'typeOrNameRequired' , true ,
472
+ ] ,
473
+
474
+ // "type"
475
+ [
476
+ 'typeAllowed' , true ,
477
+ ] ,
478
+ ] ) ,
479
+ ] ,
480
+
481
+ [
482
+ 'linkcode' , new Map ( [
483
+ // Synonym for "link"
484
+ // Signature seems to require a namepath OR URL and might be checked as such.
485
+ [
486
+ 'nameContents' , 'namepath-referencing' ,
487
+ ] ,
488
+
489
+ // "namepath"
490
+ [
491
+ 'typeOrNameRequired' , true ,
492
+ ] ,
493
+
494
+ // "type"
495
+ [
496
+ 'typeAllowed' , true ,
497
+ ] ,
498
+ ] ) ,
499
+ ] ,
500
+
501
+ [
502
+ 'linkplain' , new Map ( [
503
+ // Synonym for "link"
504
+ // Signature seems to require a namepath OR URL and might be checked as such.
505
+ [
506
+ 'nameContents' , 'namepath-referencing' ,
507
+ ] ,
508
+
509
+ // "namepath"
510
+ [
511
+ 'typeOrNameRequired' , true ,
512
+ ] ,
513
+
514
+ // "type"
515
+ [
516
+ 'typeAllowed' , true ,
517
+ ] ,
518
+ ] ) ,
519
+ ] ,
520
+
464
521
[
465
522
'listens' , new Map ( [
466
523
// Signature seems to require a "name" (of an event) and no
0 commit comments