@bartificer/linkify 2.3.5 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. package/dist/index.js +1 -1
  2. package/docs/LinkData.class.mjs.html +93 -5
  3. package/docs/LinkTemplate.class.mjs.html +93 -5
  4. package/docs/Linkifier.class.mjs.html +99 -11
  5. package/docs/PageData.class.mjs.html +93 -5
  6. package/docs/defaults.mjs.html +116 -12
  7. package/docs/docdash-overrides.css +5 -0
  8. package/docs/externals.jsdoc.html +91 -4
  9. package/docs/fonts/Montserrat/Montserrat-Bold.eot +0 -0
  10. package/docs/fonts/Montserrat/Montserrat-Bold.ttf +0 -0
  11. package/docs/fonts/Montserrat/Montserrat-Bold.woff +0 -0
  12. package/docs/fonts/Montserrat/Montserrat-Bold.woff2 +0 -0
  13. package/docs/fonts/Montserrat/Montserrat-Regular.eot +0 -0
  14. package/docs/fonts/Montserrat/Montserrat-Regular.ttf +0 -0
  15. package/docs/fonts/Montserrat/Montserrat-Regular.woff +0 -0
  16. package/docs/fonts/Montserrat/Montserrat-Regular.woff2 +0 -0
  17. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.eot +0 -0
  18. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.svg +978 -0
  19. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.ttf +0 -0
  20. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff +0 -0
  21. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff2 +0 -0
  22. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.eot +0 -0
  23. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.svg +1049 -0
  24. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.ttf +0 -0
  25. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff +0 -0
  26. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff2 +0 -0
  27. package/docs/index.html +930 -7
  28. package/docs/index.js.html +139 -17
  29. package/docs/module-cheerio.html +189 -3
  30. package/docs/module-defaults.html +585 -3
  31. package/docs/module-link-data.LinkData.html +944 -0
  32. package/docs/module-link-data.html +222 -0
  33. package/docs/module-link-template.LinkTemplate.html +817 -0
  34. package/docs/module-link-template.html +222 -0
  35. package/docs/module-linkifier.Linkifier.html +2323 -0
  36. package/docs/module-linkifier.html +232 -0
  37. package/docs/module-linkify.html +806 -3
  38. package/docs/module-mustache.html +189 -3
  39. package/docs/module-node-fetch.html +189 -3
  40. package/docs/module-page-data.PageData.html +1788 -0
  41. package/docs/module-page-data.html +222 -0
  42. package/docs/module-title-case.html +189 -3
  43. package/docs/module-urijs.html +189 -3
  44. package/docs/module-url-slug.html +189 -3
  45. package/docs/module-utilities.html +1468 -3
  46. package/docs/scripts/collapse.js +39 -0
  47. package/docs/scripts/commonNav.js +28 -0
  48. package/docs/scripts/linenumber.js +25 -0
  49. package/docs/scripts/nav.js +12 -0
  50. package/docs/scripts/polyfill.js +4 -0
  51. package/docs/scripts/{third-party → prettify}/Apache-License-2.0.txt +202 -202
  52. package/docs/scripts/prettify/lang-css.js +2 -0
  53. package/docs/scripts/prettify/prettify.js +28 -0
  54. package/docs/scripts/search.js +99 -265
  55. package/docs/styles/jsdoc.css +776 -0
  56. package/docs/styles/prettify.css +80 -0
  57. package/docs/utilities.mjs.html +124 -5
  58. package/examples/clipboardURLToMarkdown.mjs +80 -1
  59. package/package.json +3 -2
  60. package/src/LinkData.class.mjs +2 -1
  61. package/src/LinkTemplate.class.mjs +2 -1
  62. package/src/Linkifier.class.mjs +8 -7
  63. package/src/PageData.class.mjs +2 -1
  64. package/src/defaults.mjs +26 -8
  65. package/src/index.js +48 -13
  66. package/src/utilities.mjs +33 -1
  67. package/docs/data/search.json +0 -1
  68. package/docs/fonts/Inconsolata-Regular.ttf +0 -0
  69. package/docs/fonts/OpenSans-Regular.ttf +0 -0
  70. package/docs/fonts/WorkSans-Bold.ttf +0 -0
  71. package/docs/module-LinkData.LinkData.html +0 -13
  72. package/docs/module-LinkData.html +0 -3
  73. package/docs/module-LinkTemplate.LinkTemplate.html +0 -3
  74. package/docs/module-LinkTemplate.html +0 -3
  75. package/docs/module-Linkifier.Linkifier.html +0 -3
  76. package/docs/module-Linkifier.html +0 -3
  77. package/docs/module-PageData.PageData.html +0 -15
  78. package/docs/module-PageData.html +0 -3
  79. package/docs/scripts/core.js +0 -726
  80. package/docs/scripts/core.min.js +0 -23
  81. package/docs/scripts/resize.js +0 -90
  82. package/docs/scripts/search.min.js +0 -6
  83. package/docs/scripts/third-party/fuse.js +0 -9
  84. package/docs/scripts/third-party/hljs-line-num-original.js +0 -369
  85. package/docs/scripts/third-party/hljs-line-num.js +0 -1
  86. package/docs/scripts/third-party/hljs-original.js +0 -5171
  87. package/docs/scripts/third-party/hljs.js +0 -1
  88. package/docs/scripts/third-party/popper.js +0 -5
  89. package/docs/scripts/third-party/tippy.js +0 -1
  90. package/docs/scripts/third-party/tocbot.js +0 -672
  91. package/docs/scripts/third-party/tocbot.min.js +0 -1
  92. package/docs/styles/clean-jsdoc-theme-base.css +0 -1159
  93. package/docs/styles/clean-jsdoc-theme-dark.css +0 -412
  94. package/docs/styles/clean-jsdoc-theme-light.css +0 -482
  95. package/docs/styles/clean-jsdoc-theme-scrollbar.css +0 -30
  96. package/docs/styles/clean-jsdoc-theme-without-scrollbar.min.css +0 -1
  97. package/docs/styles/clean-jsdoc-theme.min.css +0 -1
@@ -0,0 +1,2323 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+
5
+ <meta charset="utf-8">
6
+ <title>Linkifier - @bartificer/linkify Documentation</title>
7
+
8
+ <meta name="description" content="Documentation for the @bartificer/linkify package" />
9
+
10
+ <meta name="keywords" content="documentation, linkify, link, template, javascript, generator, npm, module, package" />
11
+ <meta name="keyword" content="documentation, linkify, link, template, javascript, generator, npm, module, package" />
12
+
13
+
14
+
15
+ <meta property="og:title" content="@bartificer/linkify"/>
16
+ <meta property="og:type" content="website"/>
17
+ <meta property="og:image" content=""/>
18
+ <meta property="og:site_name" content="@bartificer/linkify Documentation"/>
19
+ <meta property="og:url" content="https://bartificer.github.io/linkify/"/>
20
+
21
+ <script src="scripts/prettify/prettify.js"></script>
22
+ <script src="scripts/prettify/lang-css.js"></script>
23
+ <!--[if lt IE 9]>
24
+ <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
25
+ <![endif]-->
26
+ <link type="text/css" rel="stylesheet" href="styles/prettify.css">
27
+ <link type="text/css" rel="stylesheet" href="styles/jsdoc.css">
28
+ <script src="scripts/nav.js" defer></script>
29
+
30
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
31
+ </head>
32
+ <body>
33
+
34
+ <input type="checkbox" id="nav-trigger" class="nav-trigger" />
35
+ <label for="nav-trigger" class="navicon-button x">
36
+ <div class="navicon"></div>
37
+ </label>
38
+
39
+ <label for="nav-trigger" class="overlay"></label>
40
+
41
+ <nav class="wrap">
42
+
43
+ <input type="text" id="nav-search" placeholder="Search" />
44
+
45
+
46
+ <h2><a href="index.html">Home</a></h2><h2><a href="https://github.com/bartificer/linkify" target="_blank" >On GitHub</a></h2><h2><a href="https://bartificer.net/" target="_blank" >Bartificer Creations</a></h2><h3>Modules</h3><ul><li><a href="module-defaults.html">defaults</a><ul class='members'><li data-type='member'><a href="module-defaults.html#.linkTemplates">linkTemplates</a></li><li data-type='member'><a href="module-defaults.html#.smallWords">smallWords</a></li><li data-type='member'><a href="module-defaults.html#.speciallyCapitalisedWords">speciallyCapitalisedWords</a></li></ul></li><li><a href="module-link-data.html">link-data</a></li><li><a href="module-link-template.html">link-template</a></li><li><a href="module-linkifier.html">linkifier</a></li><li><a href="module-linkify.html">linkify</a><ul class='members'><li data-type='member'><a href="module-linkify.html#.LinkData">LinkData</a></li><li data-type='member'><a href="module-linkify.html#.LinkTemplate">LinkTemplate</a></li><li data-type='member'><a href="module-linkify.html#.Linkifier">Linkifier</a></li><li data-type='member'><a href="module-linkify.html#.PageData">PageData</a></li><li data-type='member'><a href="module-linkify.html#.VERSION">VERSION</a></li><li data-type='member'><a href="module-linkify.html#.default">default</a></li><li data-type='member'><a href="module-linkify.html#.linkify">linkify</a></li></ul></li><li><a href="module-page-data.html">page-data</a></li><li><a href="module-utilities.html">utilities</a><ul class='methods'><li data-type='method'><a href="module-utilities.html#.batchFixCustomWordCases">batchFixCustomWordCases</a></li><li data-type='method'><a href="module-utilities.html#.escapeRegex">escapeRegex</a></li><li data-type='method'><a href="module-utilities.html#.extractSlug">extractSlug</a></li><li data-type='method'><a href="module-utilities.html#.regulariseWhitespace">regulariseWhitespace</a></li><li data-type='method'><a href="module-utilities.html#.stripQueryString">stripQueryString</a></li><li data-type='method'><a href="module-utilities.html#.stripUTMParameters">stripUTMParameters</a></li><li data-type='method'><a href="module-utilities.html#.toTitleCase">toTitleCase</a></li></ul></li></ul><h3>Classes</h3><ul><li><a href="module-link-data.LinkData.html">LinkData</a><ul class='methods'><li data-type='method'><a href="module-link-data.LinkData.html#asPlainObject">asPlainObject</a></li></ul></li><li><a href="module-link-template.LinkTemplate.html">LinkTemplate</a><ul class='methods'><li data-type='method'><a href="module-link-template.LinkTemplate.html#addFilter">addFilter</a></li><li data-type='method'><a href="module-link-template.LinkTemplate.html#filtersFor">filtersFor</a></li></ul></li><li><a href="module-linkifier.Linkifier.html">Linkifier</a><ul class='methods'><li data-type='method'><a href="module-linkifier.Linkifier.html#fetchPageData">fetchPageData</a></li><li data-type='method'><a href="module-linkifier.Linkifier.html#generateLink">generateLink</a></li><li data-type='method'><a href="module-linkifier.Linkifier.html#getTemplate">getTemplate</a></li><li data-type='method'><a href="module-linkifier.Linkifier.html#getTemplateNameForDomain">getTemplateNameForDomain</a></li><li data-type='method'><a href="module-linkifier.Linkifier.html#getTransformerForDomain">getTransformerForDomain</a></li><li data-type='method'><a href="module-linkifier.Linkifier.html#registerDefaultTemplateMapping">registerDefaultTemplateMapping</a></li><li data-type='method'><a href="module-linkifier.Linkifier.html#registerTemplate">registerTemplate</a></li><li data-type='method'><a href="module-linkifier.Linkifier.html#registerTransformer">registerTransformer</a></li></ul></li><li><a href="module-page-data.PageData.html">PageData</a><ul class='methods'><li data-type='method'><a href="module-page-data.PageData.html#addSecondaryHeading">addSecondaryHeading</a></li><li data-type='method'><a href="module-page-data.PageData.html#addTopLevelHeading">addTopLevelHeading</a></li><li data-type='method'><a href="module-page-data.PageData.html#asPlainObject">asPlainObject</a></li><li data-type='method'><a href="module-page-data.PageData.html#h1">h1</a></li><li data-type='method'><a href="module-page-data.PageData.html#h2">h2</a></li></ul></li></ul><h3>Externals</h3><ul><li><a href="module-cheerio.html">cheerio</a></li><li><a href="module-mustache.html">mustache</a></li><li><a href="module-node-fetch.html">node-fetch</a></li><li><a href="module-title-case.html">title-case</a></li><li><a href="module-urijs.html">urijs</a></li><li><a href="module-url-slug.html">url-slug</a></li></ul>
47
+
48
+ </nav>
49
+
50
+ <div id="main">
51
+
52
+ <h1 class="page-title">Linkifier</h1>
53
+
54
+
55
+
56
+
57
+
58
+
59
+
60
+ <section>
61
+
62
+ <header>
63
+
64
+ <h2>
65
+ <span class="ancestors"><a href="module-linkifier.html">linkifier</a>.</span>
66
+
67
+
68
+ Linkifier
69
+
70
+ </h2>
71
+
72
+ <div class="class-description usertext"><p>The class providing the link rendering functionality. Instances of this class capture the settings for generating links, and, generate links using these settings.</p></div>
73
+
74
+
75
+ </header>
76
+
77
+ <article>
78
+
79
+ <div class="container-overview">
80
+
81
+
82
+
83
+
84
+ <h2>Constructor</h2>
85
+
86
+
87
+ <h4 class="name" id="Linkifier"><span class="type-signature"></span>new Linkifier<span class="signature">()</span><span class="type-signature"></span></h4>
88
+
89
+
90
+
91
+
92
+
93
+
94
+ <dl class="details">
95
+
96
+
97
+
98
+ <dt class="tag-source">Source:</dt>
99
+ <dd class="tag-source"><ul class="dummy"><li>
100
+ <a href="Linkifier.class.mjs.html">Linkifier.class.mjs</a>, <a href="Linkifier.class.mjs.html#line30">line 30</a>
101
+ </li></ul></dd>
102
+
103
+
104
+
105
+
106
+
107
+
108
+
109
+
110
+
111
+
112
+
113
+
114
+
115
+
116
+
117
+
118
+
119
+
120
+
121
+
122
+
123
+
124
+
125
+
126
+
127
+
128
+
129
+
130
+
131
+
132
+
133
+ </dl>
134
+
135
+
136
+
137
+
138
+
139
+
140
+
141
+
142
+
143
+
144
+
145
+
146
+
147
+
148
+
149
+
150
+
151
+
152
+
153
+
154
+
155
+
156
+
157
+
158
+
159
+
160
+
161
+
162
+
163
+
164
+
165
+ </div>
166
+
167
+
168
+
169
+
170
+
171
+
172
+
173
+
174
+
175
+
176
+
177
+
178
+
179
+
180
+
181
+ <h3 class="subsection-title">Members</h3>
182
+
183
+
184
+
185
+ <h4 class="name" id="defaultTemplate"><span class="type-signature"></span>defaultTemplate<span class="type-signature"> :module:LinkTemplate.class.LinkTemplate</span></h4>
186
+
187
+
188
+
189
+
190
+
191
+ <dl class="details">
192
+
193
+ <dt class="tag-description">Description:</dt>
194
+ <dd class="tag-description"><ul class="dummy"><li><p>The default link template.</p></li></ul></dd>
195
+
196
+
197
+
198
+ <dt class="tag-source">Source:</dt>
199
+ <dd class="tag-source"><ul class="dummy"><li>
200
+ <a href="Linkifier.class.mjs.html">Linkifier.class.mjs</a>, <a href="Linkifier.class.mjs.html#line209">line 209</a>
201
+ </li></ul></dd>
202
+
203
+
204
+
205
+
206
+
207
+
208
+
209
+
210
+
211
+
212
+
213
+
214
+
215
+
216
+
217
+
218
+
219
+
220
+
221
+
222
+
223
+
224
+
225
+
226
+
227
+
228
+
229
+
230
+
231
+
232
+
233
+ </dl>
234
+
235
+
236
+
237
+
238
+
239
+ <div class="description usertext">
240
+ <p>The default link template.</p>
241
+ </div>
242
+
243
+
244
+
245
+ <h5 class="h5-types">Type:</h5>
246
+ <ul>
247
+ <li>
248
+
249
+ <span class="param-type">module:LinkTemplate.class.LinkTemplate</span>
250
+
251
+
252
+
253
+ </li>
254
+ </ul>
255
+
256
+
257
+
258
+
259
+
260
+
261
+
262
+
263
+ <h4 class="name" id="defaultTemplateName"><span class="type-signature"></span>defaultTemplateName<span class="type-signature"></span></h4>
264
+
265
+
266
+
267
+
268
+
269
+ <dl class="details">
270
+
271
+
272
+
273
+ <dt class="tag-source">Source:</dt>
274
+ <dd class="tag-source"><ul class="dummy"><li>
275
+ <a href="Linkifier.class.mjs.html">Linkifier.class.mjs</a>, <a href="Linkifier.class.mjs.html#line189">line 189</a>
276
+ </li></ul></dd>
277
+
278
+
279
+
280
+
281
+
282
+
283
+
284
+
285
+
286
+
287
+
288
+
289
+
290
+
291
+
292
+
293
+
294
+
295
+
296
+
297
+
298
+
299
+
300
+
301
+
302
+
303
+
304
+
305
+
306
+
307
+
308
+ </dl>
309
+
310
+
311
+
312
+
313
+
314
+
315
+
316
+
317
+
318
+
319
+
320
+
321
+
322
+
323
+ <h4 class="name" id="defaultTemplateName"><span class="type-signature"></span>defaultTemplateName<span class="type-signature"></span></h4>
324
+
325
+
326
+
327
+
328
+
329
+ <dl class="details">
330
+
331
+
332
+
333
+ <dt class="tag-source">Source:</dt>
334
+ <dd class="tag-source"><ul class="dummy"><li>
335
+ <a href="Linkifier.class.mjs.html">Linkifier.class.mjs</a>, <a href="Linkifier.class.mjs.html#line197">line 197</a>
336
+ </li></ul></dd>
337
+
338
+
339
+
340
+
341
+
342
+
343
+
344
+
345
+
346
+
347
+
348
+
349
+
350
+
351
+
352
+
353
+
354
+
355
+
356
+
357
+
358
+
359
+
360
+
361
+
362
+
363
+
364
+
365
+
366
+
367
+
368
+ </dl>
369
+
370
+
371
+
372
+
373
+
374
+
375
+
376
+
377
+
378
+
379
+
380
+
381
+
382
+
383
+ <h4 class="name" id="speciallyCapitalisedWords"><span class="type-signature"></span>speciallyCapitalisedWords<span class="type-signature"></span></h4>
384
+
385
+
386
+
387
+
388
+
389
+ <dl class="details">
390
+
391
+
392
+
393
+ <dt class="tag-source">Source:</dt>
394
+ <dd class="tag-source"><ul class="dummy"><li>
395
+ <a href="Linkifier.class.mjs.html">Linkifier.class.mjs</a>, <a href="Linkifier.class.mjs.html#line108">line 108</a>
396
+ </li></ul></dd>
397
+
398
+
399
+
400
+
401
+
402
+
403
+
404
+
405
+
406
+
407
+
408
+
409
+
410
+
411
+
412
+
413
+
414
+
415
+
416
+
417
+
418
+
419
+
420
+
421
+
422
+
423
+
424
+
425
+
426
+
427
+
428
+ </dl>
429
+
430
+
431
+
432
+
433
+
434
+
435
+
436
+
437
+
438
+
439
+
440
+
441
+
442
+
443
+ <h4 class="name" id="speciallyCapitalisedWords"><span class="type-signature"></span>speciallyCapitalisedWords<span class="type-signature"></span></h4>
444
+
445
+
446
+
447
+
448
+
449
+ <dl class="details">
450
+
451
+
452
+
453
+ <dt class="tag-source">Source:</dt>
454
+ <dd class="tag-source"><ul class="dummy"><li>
455
+ <a href="Linkifier.class.mjs.html">Linkifier.class.mjs</a>, <a href="Linkifier.class.mjs.html#line117">line 117</a>
456
+ </li></ul></dd>
457
+
458
+
459
+
460
+
461
+
462
+
463
+
464
+
465
+
466
+
467
+
468
+
469
+
470
+
471
+
472
+
473
+
474
+
475
+
476
+
477
+
478
+
479
+
480
+
481
+
482
+
483
+
484
+
485
+
486
+
487
+
488
+ </dl>
489
+
490
+
491
+
492
+
493
+
494
+
495
+
496
+
497
+
498
+
499
+
500
+
501
+
502
+
503
+ <h4 class="name" id="templateNames"><span class="type-signature"></span>templateNames<span class="type-signature"> :Array.&lt;string></span></h4>
504
+
505
+
506
+
507
+
508
+
509
+ <dl class="details">
510
+
511
+ <dt class="tag-description">Description:</dt>
512
+ <dd class="tag-description"><ul class="dummy"><li><p>A list of the names of the registered link templates.</p></li></ul></dd>
513
+
514
+
515
+
516
+ <dt class="tag-source">Source:</dt>
517
+ <dd class="tag-source"><ul class="dummy"><li>
518
+ <a href="Linkifier.class.mjs.html">Linkifier.class.mjs</a>, <a href="Linkifier.class.mjs.html#line182">line 182</a>
519
+ </li></ul></dd>
520
+
521
+
522
+
523
+
524
+
525
+
526
+
527
+
528
+
529
+
530
+
531
+
532
+
533
+
534
+
535
+
536
+
537
+
538
+
539
+
540
+
541
+
542
+
543
+
544
+
545
+
546
+
547
+
548
+
549
+
550
+
551
+ </dl>
552
+
553
+
554
+
555
+
556
+
557
+ <div class="description usertext">
558
+ <p>A list of the names of the registered link templates.</p>
559
+ </div>
560
+
561
+
562
+
563
+ <h5 class="h5-types">Type:</h5>
564
+ <ul>
565
+ <li>
566
+
567
+ <span class="param-type">Array.&lt;string></span>
568
+
569
+
570
+
571
+ </li>
572
+ </ul>
573
+
574
+
575
+
576
+
577
+
578
+
579
+
580
+
581
+ <h4 class="name" id="util"><span class="type-signature"></span>util<span class="type-signature"></span></h4>
582
+
583
+
584
+
585
+
586
+
587
+ <dl class="details">
588
+
589
+
590
+
591
+ <dt class="tag-source">Source:</dt>
592
+ <dd class="tag-source"><ul class="dummy"><li>
593
+ <a href="Linkifier.class.mjs.html">Linkifier.class.mjs</a>, <a href="Linkifier.class.mjs.html#line101">line 101</a>
594
+ </li></ul></dd>
595
+
596
+
597
+
598
+
599
+
600
+
601
+
602
+
603
+
604
+
605
+
606
+
607
+
608
+
609
+
610
+
611
+
612
+
613
+
614
+
615
+
616
+
617
+
618
+
619
+
620
+
621
+
622
+
623
+
624
+ <dt class="tag-see">See:</dt>
625
+ <dd class="tag-see">
626
+ <ul>
627
+ <li>Linfifier.utilities</li>
628
+ </ul>
629
+ </dd>
630
+
631
+
632
+
633
+ </dl>
634
+
635
+
636
+
637
+
638
+
639
+
640
+
641
+
642
+
643
+
644
+
645
+
646
+
647
+
648
+ <h4 class="name" id="utilities"><span class="type-signature"></span>utilities<span class="type-signature"> :Object.&lt;string, function()></span></h4>
649
+
650
+
651
+
652
+
653
+
654
+ <dl class="details">
655
+
656
+
657
+
658
+ <dt class="tag-source">Source:</dt>
659
+ <dd class="tag-source"><ul class="dummy"><li>
660
+ <a href="Linkifier.class.mjs.html">Linkifier.class.mjs</a>, <a href="Linkifier.class.mjs.html#line94">line 94</a>
661
+ </li></ul></dd>
662
+
663
+
664
+
665
+
666
+
667
+
668
+
669
+
670
+
671
+
672
+
673
+
674
+
675
+
676
+
677
+
678
+
679
+
680
+
681
+
682
+
683
+
684
+
685
+
686
+
687
+
688
+
689
+
690
+
691
+
692
+
693
+ </dl>
694
+
695
+
696
+
697
+
698
+
699
+
700
+
701
+ <h5 class="h5-types">Type:</h5>
702
+ <ul>
703
+ <li>
704
+
705
+ <span class="param-type">Object.&lt;string, function()></span>
706
+
707
+
708
+
709
+ </li>
710
+ </ul>
711
+
712
+
713
+
714
+
715
+
716
+
717
+
718
+
719
+
720
+
721
+ <h3 class="subsection-title">Methods</h3>
722
+
723
+
724
+
725
+
726
+
727
+
728
+ <h4 class="name" id="fetchPageData"><span class="type-signature type-signature-async">(async) </span>fetchPageData<span class="signature">(url)</span><span class="type-signature"> &rarr; {PageData}</span></h4>
729
+
730
+
731
+
732
+
733
+
734
+
735
+ <dl class="details">
736
+
737
+ <dt class="tag-description">Description:</dt>
738
+ <dd class="tag-description"><ul class="dummy"><li><p>Fetch the page data for a given URL.</p></li></ul></dd>
739
+
740
+
741
+
742
+ <dt class="tag-source">Source:</dt>
743
+ <dd class="tag-source"><ul class="dummy"><li>
744
+ <a href="Linkifier.class.mjs.html">Linkifier.class.mjs</a>, <a href="Linkifier.class.mjs.html#line316">line 316</a>
745
+ </li></ul></dd>
746
+
747
+
748
+
749
+
750
+
751
+
752
+
753
+
754
+
755
+
756
+
757
+
758
+
759
+
760
+
761
+
762
+
763
+
764
+
765
+
766
+
767
+
768
+
769
+
770
+
771
+
772
+
773
+
774
+
775
+
776
+
777
+ </dl>
778
+
779
+
780
+
781
+
782
+
783
+
784
+
785
+
786
+
787
+
788
+
789
+
790
+
791
+ <h5 class="h5-parameters">Parameters:</h5>
792
+
793
+
794
+ <table class="params">
795
+ <thead>
796
+ <tr>
797
+
798
+ <th>Name</th>
799
+
800
+
801
+ <th>Type</th>
802
+
803
+
804
+
805
+
806
+
807
+ <th class="last">Description</th>
808
+ </tr>
809
+ </thead>
810
+
811
+ <tbody>
812
+
813
+
814
+ <tr>
815
+
816
+ <td class="name"><code>url</code></td>
817
+
818
+
819
+ <td class="type">
820
+
821
+
822
+ <span class="param-type">URL</span>
823
+
824
+
825
+
826
+
827
+ </td>
828
+
829
+
830
+
831
+
832
+
833
+ <td class="description last"></td>
834
+ </tr>
835
+
836
+
837
+ </tbody>
838
+ </table>
839
+
840
+
841
+
842
+
843
+
844
+
845
+
846
+
847
+
848
+
849
+
850
+
851
+
852
+
853
+ <h5 class="h5-throws">Throws:</h5>
854
+
855
+
856
+
857
+ <dl>
858
+ <dt>
859
+ <div class="param-desc usertext">
860
+ <p>A validation error is thrown unless a valid URL is
861
+ passed.</p>
862
+ </div>
863
+ </dt>
864
+ <dd></dd>
865
+ <dt>
866
+ <dl class="param-type">
867
+ <dt>
868
+ Type
869
+ </dt>
870
+ <dd>
871
+
872
+ <span class="param-type">ValidationError</span>
873
+
874
+
875
+
876
+ </dd>
877
+ </dl>
878
+ </dt>
879
+ <dd></dd>
880
+ </dl>
881
+
882
+
883
+
884
+
885
+
886
+ <h5 class="h5-returns">Returns:</h5>
887
+
888
+
889
+
890
+
891
+ <dl class="param-type">
892
+ <dt>
893
+ Type
894
+ </dt>
895
+ <dd>
896
+
897
+ <span class="param-type">PageData</span>
898
+
899
+
900
+
901
+ </dd>
902
+ </dl>
903
+
904
+
905
+
906
+
907
+
908
+
909
+
910
+
911
+
912
+
913
+ <h4 class="name" id="generateLink"><span class="type-signature type-signature-async">(async) </span>generateLink<span class="signature">(url, templateName<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {string}</span></h4>
914
+
915
+
916
+
917
+
918
+
919
+
920
+ <dl class="details">
921
+
922
+ <dt class="tag-description">Description:</dt>
923
+ <dd class="tag-description"><ul class="dummy"><li><p>Generate a link given a URL. By default the registered template for the
924
+ URL's domain will be used, or, if none is registered, the overall
925
+ default will be used (<code>html</code>).</p></li></ul></dd>
926
+
927
+
928
+
929
+ <dt class="tag-source">Source:</dt>
930
+ <dd class="tag-source"><ul class="dummy"><li>
931
+ <a href="Linkifier.class.mjs.html">Linkifier.class.mjs</a>, <a href="Linkifier.class.mjs.html#line360">line 360</a>
932
+ </li></ul></dd>
933
+
934
+
935
+
936
+
937
+
938
+
939
+
940
+
941
+
942
+
943
+
944
+
945
+
946
+
947
+
948
+
949
+
950
+
951
+
952
+
953
+
954
+
955
+
956
+
957
+
958
+
959
+
960
+
961
+
962
+
963
+
964
+ </dl>
965
+
966
+
967
+
968
+
969
+
970
+
971
+
972
+
973
+
974
+
975
+
976
+
977
+
978
+ <h5 class="h5-parameters">Parameters:</h5>
979
+
980
+
981
+ <table class="params">
982
+ <thead>
983
+ <tr>
984
+
985
+ <th>Name</th>
986
+
987
+
988
+ <th>Type</th>
989
+
990
+
991
+ <th>Attributes</th>
992
+
993
+
994
+
995
+ <th>Default</th>
996
+
997
+
998
+ <th class="last">Description</th>
999
+ </tr>
1000
+ </thead>
1001
+
1002
+ <tbody>
1003
+
1004
+
1005
+ <tr>
1006
+
1007
+ <td class="name"><code>url</code></td>
1008
+
1009
+
1010
+ <td class="type">
1011
+
1012
+
1013
+ <span class="param-type">URL</span>
1014
+
1015
+
1016
+
1017
+
1018
+ </td>
1019
+
1020
+
1021
+ <td class="attributes">
1022
+
1023
+
1024
+
1025
+
1026
+
1027
+ </td>
1028
+
1029
+
1030
+
1031
+ <td class="default">
1032
+
1033
+ </td>
1034
+
1035
+
1036
+ <td class="description last"></td>
1037
+ </tr>
1038
+
1039
+
1040
+
1041
+ <tr>
1042
+
1043
+ <td class="name"><code>templateName</code></td>
1044
+
1045
+
1046
+ <td class="type">
1047
+
1048
+
1049
+ <span class="param-type">templateName</span>
1050
+
1051
+
1052
+
1053
+
1054
+ </td>
1055
+
1056
+
1057
+ <td class="attributes">
1058
+
1059
+ &lt;optional><br>
1060
+
1061
+
1062
+
1063
+
1064
+
1065
+ </td>
1066
+
1067
+
1068
+
1069
+ <td class="default">
1070
+
1071
+ <code>'html'</code>
1072
+
1073
+ </td>
1074
+
1075
+
1076
+ <td class="description last"></td>
1077
+ </tr>
1078
+
1079
+
1080
+ </tbody>
1081
+ </table>
1082
+
1083
+
1084
+
1085
+
1086
+
1087
+
1088
+
1089
+
1090
+
1091
+
1092
+
1093
+
1094
+
1095
+
1096
+ <h5 class="h5-throws">Throws:</h5>
1097
+
1098
+
1099
+
1100
+ <dl>
1101
+ <dt>
1102
+ <div class="param-desc usertext">
1103
+ <p>A validation error is thrown unless a valid URL is
1104
+ passed.</p>
1105
+ </div>
1106
+ </dt>
1107
+ <dd></dd>
1108
+ <dt>
1109
+ <dl class="param-type">
1110
+ <dt>
1111
+ Type
1112
+ </dt>
1113
+ <dd>
1114
+
1115
+ <span class="param-type">ValidationError</span>
1116
+
1117
+
1118
+
1119
+ </dd>
1120
+ </dl>
1121
+ </dt>
1122
+ <dd></dd>
1123
+ </dl>
1124
+
1125
+
1126
+
1127
+
1128
+
1129
+ <h5 class="h5-returns">Returns:</h5>
1130
+
1131
+
1132
+
1133
+
1134
+ <dl class="param-type">
1135
+ <dt>
1136
+ Type
1137
+ </dt>
1138
+ <dd>
1139
+
1140
+ <span class="param-type">string</span>
1141
+
1142
+
1143
+
1144
+ </dd>
1145
+ </dl>
1146
+
1147
+
1148
+
1149
+
1150
+
1151
+
1152
+
1153
+
1154
+
1155
+
1156
+ <h4 class="name" id="getTemplate"><span class="type-signature"></span>getTemplate<span class="signature">(templateName)</span><span class="type-signature"> &rarr; {LinkTemplate}</span></h4>
1157
+
1158
+
1159
+
1160
+
1161
+
1162
+
1163
+ <dl class="details">
1164
+
1165
+ <dt class="tag-description">Description:</dt>
1166
+ <dd class="tag-description"><ul class="dummy"><li><p>Get a registered link template by name.</p></li></ul></dd>
1167
+
1168
+
1169
+
1170
+ <dt class="tag-source">Source:</dt>
1171
+ <dd class="tag-source"><ul class="dummy"><li>
1172
+ <a href="Linkifier.class.mjs.html">Linkifier.class.mjs</a>, <a href="Linkifier.class.mjs.html#line235">line 235</a>
1173
+ </li></ul></dd>
1174
+
1175
+
1176
+
1177
+
1178
+
1179
+
1180
+
1181
+
1182
+
1183
+
1184
+
1185
+
1186
+
1187
+
1188
+
1189
+
1190
+
1191
+
1192
+
1193
+
1194
+
1195
+
1196
+
1197
+
1198
+
1199
+
1200
+
1201
+
1202
+
1203
+
1204
+
1205
+ </dl>
1206
+
1207
+
1208
+
1209
+
1210
+
1211
+
1212
+
1213
+
1214
+
1215
+
1216
+
1217
+
1218
+
1219
+ <h5 class="h5-parameters">Parameters:</h5>
1220
+
1221
+
1222
+ <table class="params">
1223
+ <thead>
1224
+ <tr>
1225
+
1226
+ <th>Name</th>
1227
+
1228
+
1229
+ <th>Type</th>
1230
+
1231
+
1232
+
1233
+
1234
+
1235
+ <th class="last">Description</th>
1236
+ </tr>
1237
+ </thead>
1238
+
1239
+ <tbody>
1240
+
1241
+
1242
+ <tr>
1243
+
1244
+ <td class="name"><code>templateName</code></td>
1245
+
1246
+
1247
+ <td class="type">
1248
+
1249
+
1250
+ <span class="param-type">string</span>
1251
+
1252
+
1253
+
1254
+
1255
+ </td>
1256
+
1257
+
1258
+
1259
+
1260
+
1261
+ <td class="description last"></td>
1262
+ </tr>
1263
+
1264
+
1265
+ </tbody>
1266
+ </table>
1267
+
1268
+
1269
+
1270
+
1271
+
1272
+
1273
+
1274
+
1275
+
1276
+
1277
+
1278
+
1279
+
1280
+
1281
+ <h5 class="h5-throws">Throws:</h5>
1282
+
1283
+
1284
+
1285
+ <dl>
1286
+ <dt>
1287
+ <div class="param-desc usertext">
1288
+ <p>A validation error is thrown unless a valid name is passed and corresponds to a registered template.</p>
1289
+ </div>
1290
+ </dt>
1291
+ <dd></dd>
1292
+ <dt>
1293
+ <dl class="param-type">
1294
+ <dt>
1295
+ Type
1296
+ </dt>
1297
+ <dd>
1298
+
1299
+ <span class="param-type">ValidationError</span>
1300
+
1301
+
1302
+
1303
+ </dd>
1304
+ </dl>
1305
+ </dt>
1306
+ <dd></dd>
1307
+ </dl>
1308
+
1309
+
1310
+
1311
+
1312
+
1313
+ <h5 class="h5-returns">Returns:</h5>
1314
+
1315
+
1316
+
1317
+
1318
+ <dl class="param-type">
1319
+ <dt>
1320
+ Type
1321
+ </dt>
1322
+ <dd>
1323
+
1324
+ <span class="param-type">LinkTemplate</span>
1325
+
1326
+
1327
+
1328
+ </dd>
1329
+ </dl>
1330
+
1331
+
1332
+
1333
+
1334
+
1335
+
1336
+
1337
+
1338
+
1339
+
1340
+ <h4 class="name" id="getTemplateNameForDomain"><span class="type-signature"></span>getTemplateNameForDomain<span class="signature">(domain)</span><span class="type-signature"> &rarr; {dataTransformer}</span></h4>
1341
+
1342
+
1343
+
1344
+
1345
+
1346
+
1347
+ <dl class="details">
1348
+
1349
+ <dt class="tag-description">Description:</dt>
1350
+ <dd class="tag-description"><ul class="dummy"><li><p>Get the data transformer function for a given domain.</p>
1351
+ <p>Note that domains are searched from the subdomain up. For example, if passed
1352
+ the domain <code>www.bartificer.net</code> the function will first look for a
1353
+ transformer for the domain <code>www.bartificer.net</code>, if there's no transformer
1354
+ registered for that domain it will look for a transformer for the domain
1355
+ <code>bartificer.net</code>, if there's no transformer for that domain either it will
1356
+ return the default transformer.</p></li></ul></dd>
1357
+
1358
+
1359
+
1360
+ <dt class="tag-source">Source:</dt>
1361
+ <dd class="tag-source"><ul class="dummy"><li>
1362
+ <a href="Linkifier.class.mjs.html">Linkifier.class.mjs</a>, <a href="Linkifier.class.mjs.html#line278">line 278</a>
1363
+ </li></ul></dd>
1364
+
1365
+
1366
+
1367
+
1368
+
1369
+
1370
+
1371
+
1372
+
1373
+
1374
+
1375
+
1376
+
1377
+
1378
+
1379
+
1380
+
1381
+
1382
+
1383
+
1384
+
1385
+
1386
+
1387
+
1388
+
1389
+
1390
+
1391
+
1392
+
1393
+
1394
+
1395
+ </dl>
1396
+
1397
+
1398
+
1399
+
1400
+
1401
+
1402
+
1403
+
1404
+
1405
+
1406
+
1407
+
1408
+
1409
+ <h5 class="h5-parameters">Parameters:</h5>
1410
+
1411
+
1412
+ <table class="params">
1413
+ <thead>
1414
+ <tr>
1415
+
1416
+ <th>Name</th>
1417
+
1418
+
1419
+ <th>Type</th>
1420
+
1421
+
1422
+
1423
+
1424
+
1425
+ <th class="last">Description</th>
1426
+ </tr>
1427
+ </thead>
1428
+
1429
+ <tbody>
1430
+
1431
+
1432
+ <tr>
1433
+
1434
+ <td class="name"><code>domain</code></td>
1435
+
1436
+
1437
+ <td class="type">
1438
+
1439
+
1440
+ <span class="param-type">domainName</span>
1441
+
1442
+
1443
+
1444
+
1445
+ </td>
1446
+
1447
+
1448
+
1449
+
1450
+
1451
+ <td class="description last"><p>The domain to get the data transformer for.</p></td>
1452
+ </tr>
1453
+
1454
+
1455
+ </tbody>
1456
+ </table>
1457
+
1458
+
1459
+
1460
+
1461
+
1462
+
1463
+
1464
+
1465
+
1466
+
1467
+
1468
+
1469
+
1470
+
1471
+ <h5 class="h5-throws">Throws:</h5>
1472
+
1473
+
1474
+
1475
+ <dl>
1476
+ <dt>
1477
+ <div class="param-desc usertext">
1478
+ <p>A validation error is thrown unless a valid domain
1479
+ name is passed.</p>
1480
+ </div>
1481
+ </dt>
1482
+ <dd></dd>
1483
+ <dt>
1484
+ <dl class="param-type">
1485
+ <dt>
1486
+ Type
1487
+ </dt>
1488
+ <dd>
1489
+
1490
+ <span class="param-type">ValidationError</span>
1491
+
1492
+
1493
+
1494
+ </dd>
1495
+ </dl>
1496
+ </dt>
1497
+ <dd></dd>
1498
+ </dl>
1499
+
1500
+
1501
+
1502
+
1503
+
1504
+ <h5 class="h5-returns">Returns:</h5>
1505
+
1506
+
1507
+
1508
+
1509
+ <dl class="param-type">
1510
+ <dt>
1511
+ Type
1512
+ </dt>
1513
+ <dd>
1514
+
1515
+ <span class="param-type">dataTransformer</span>
1516
+
1517
+
1518
+
1519
+ </dd>
1520
+ </dl>
1521
+
1522
+
1523
+
1524
+
1525
+
1526
+
1527
+
1528
+
1529
+
1530
+
1531
+ <h4 class="name" id="getTransformerForDomain"><span class="type-signature"></span>getTransformerForDomain<span class="signature">(domain)</span><span class="type-signature"> &rarr; {dataTransformer}</span></h4>
1532
+
1533
+
1534
+
1535
+
1536
+
1537
+
1538
+ <dl class="details">
1539
+
1540
+ <dt class="tag-description">Description:</dt>
1541
+ <dd class="tag-description"><ul class="dummy"><li><p>Get the data transformer function for a given domain.</p>
1542
+ <p>Note that domains are searched from the subdomain up. For example, if passed
1543
+ the domain <code>www.bartificer.net</code> the function will first look for a
1544
+ transformer for the domain <code>www.bartificer.net</code>, if there's no transformer
1545
+ registered for that domain it will look for a transformer for the domain
1546
+ <code>bartificer.net</code>, if there's no transformer for that domain either it will
1547
+ return the default transformer.</p></li></ul></dd>
1548
+
1549
+
1550
+
1551
+ <dt class="tag-source">Source:</dt>
1552
+ <dd class="tag-source"><ul class="dummy"><li>
1553
+ <a href="Linkifier.class.mjs.html">Linkifier.class.mjs</a>, <a href="Linkifier.class.mjs.html#line157">line 157</a>
1554
+ </li></ul></dd>
1555
+
1556
+
1557
+
1558
+
1559
+
1560
+
1561
+
1562
+
1563
+
1564
+
1565
+
1566
+
1567
+
1568
+
1569
+
1570
+
1571
+
1572
+
1573
+
1574
+
1575
+
1576
+
1577
+
1578
+
1579
+
1580
+
1581
+
1582
+
1583
+
1584
+
1585
+
1586
+ </dl>
1587
+
1588
+
1589
+
1590
+
1591
+
1592
+
1593
+
1594
+
1595
+
1596
+
1597
+
1598
+
1599
+
1600
+ <h5 class="h5-parameters">Parameters:</h5>
1601
+
1602
+
1603
+ <table class="params">
1604
+ <thead>
1605
+ <tr>
1606
+
1607
+ <th>Name</th>
1608
+
1609
+
1610
+ <th>Type</th>
1611
+
1612
+
1613
+
1614
+
1615
+
1616
+ <th class="last">Description</th>
1617
+ </tr>
1618
+ </thead>
1619
+
1620
+ <tbody>
1621
+
1622
+
1623
+ <tr>
1624
+
1625
+ <td class="name"><code>domain</code></td>
1626
+
1627
+
1628
+ <td class="type">
1629
+
1630
+
1631
+ <span class="param-type">domainName</span>
1632
+
1633
+
1634
+
1635
+
1636
+ </td>
1637
+
1638
+
1639
+
1640
+
1641
+
1642
+ <td class="description last"><p>The domain to get the data transformer for.</p></td>
1643
+ </tr>
1644
+
1645
+
1646
+ </tbody>
1647
+ </table>
1648
+
1649
+
1650
+
1651
+
1652
+
1653
+
1654
+
1655
+
1656
+
1657
+
1658
+
1659
+
1660
+
1661
+
1662
+ <h5 class="h5-throws">Throws:</h5>
1663
+
1664
+
1665
+
1666
+ <dl>
1667
+ <dt>
1668
+ <div class="param-desc usertext">
1669
+ <p>A validation error is thrown unless a valid domain
1670
+ name is passed.</p>
1671
+ </div>
1672
+ </dt>
1673
+ <dd></dd>
1674
+ <dt>
1675
+ <dl class="param-type">
1676
+ <dt>
1677
+ Type
1678
+ </dt>
1679
+ <dd>
1680
+
1681
+ <span class="param-type">ValidationError</span>
1682
+
1683
+
1684
+
1685
+ </dd>
1686
+ </dl>
1687
+ </dt>
1688
+ <dd></dd>
1689
+ </dl>
1690
+
1691
+
1692
+
1693
+
1694
+
1695
+ <h5 class="h5-returns">Returns:</h5>
1696
+
1697
+
1698
+
1699
+
1700
+ <dl class="param-type">
1701
+ <dt>
1702
+ Type
1703
+ </dt>
1704
+ <dd>
1705
+
1706
+ <span class="param-type">dataTransformer</span>
1707
+
1708
+
1709
+
1710
+ </dd>
1711
+ </dl>
1712
+
1713
+
1714
+
1715
+
1716
+
1717
+
1718
+
1719
+
1720
+
1721
+
1722
+ <h4 class="name" id="registerDefaultTemplateMapping"><span class="type-signature"></span>registerDefaultTemplateMapping<span class="signature">(domain, templateName)</span><span class="type-signature"></span></h4>
1723
+
1724
+
1725
+
1726
+
1727
+
1728
+
1729
+ <dl class="details">
1730
+
1731
+ <dt class="tag-description">Description:</dt>
1732
+ <dd class="tag-description"><ul class="dummy"><li><p>Register a default template for use with a given domain. This template will
1733
+ override the overall default for this domain and all its subdomains.</p></li></ul></dd>
1734
+
1735
+
1736
+
1737
+ <dt class="tag-source">Source:</dt>
1738
+ <dd class="tag-source"><ul class="dummy"><li>
1739
+ <a href="Linkifier.class.mjs.html">Linkifier.class.mjs</a>, <a href="Linkifier.class.mjs.html#line253">line 253</a>
1740
+ </li></ul></dd>
1741
+
1742
+
1743
+
1744
+
1745
+
1746
+
1747
+
1748
+
1749
+
1750
+
1751
+
1752
+
1753
+
1754
+
1755
+
1756
+
1757
+
1758
+
1759
+
1760
+
1761
+
1762
+
1763
+
1764
+
1765
+
1766
+
1767
+
1768
+
1769
+
1770
+
1771
+
1772
+ </dl>
1773
+
1774
+
1775
+
1776
+
1777
+
1778
+
1779
+
1780
+
1781
+
1782
+
1783
+
1784
+
1785
+
1786
+ <h5 class="h5-parameters">Parameters:</h5>
1787
+
1788
+
1789
+ <table class="params">
1790
+ <thead>
1791
+ <tr>
1792
+
1793
+ <th>Name</th>
1794
+
1795
+
1796
+ <th>Type</th>
1797
+
1798
+
1799
+
1800
+
1801
+
1802
+ <th class="last">Description</th>
1803
+ </tr>
1804
+ </thead>
1805
+
1806
+ <tbody>
1807
+
1808
+
1809
+ <tr>
1810
+
1811
+ <td class="name"><code>domain</code></td>
1812
+
1813
+
1814
+ <td class="type">
1815
+
1816
+
1817
+ <span class="param-type">domainName</span>
1818
+
1819
+
1820
+
1821
+
1822
+ </td>
1823
+
1824
+
1825
+
1826
+
1827
+
1828
+ <td class="description last"><p>The domain for which this template should be used by default.</p></td>
1829
+ </tr>
1830
+
1831
+
1832
+
1833
+ <tr>
1834
+
1835
+ <td class="name"><code>templateName</code></td>
1836
+
1837
+
1838
+ <td class="type">
1839
+
1840
+
1841
+ <span class="param-type">templateName</span>
1842
+
1843
+
1844
+
1845
+
1846
+ </td>
1847
+
1848
+
1849
+
1850
+
1851
+
1852
+ <td class="description last"><p>The name of the template to use.</p></td>
1853
+ </tr>
1854
+
1855
+
1856
+ </tbody>
1857
+ </table>
1858
+
1859
+
1860
+
1861
+
1862
+
1863
+
1864
+
1865
+
1866
+
1867
+
1868
+
1869
+
1870
+
1871
+
1872
+ <h5 class="h5-throws">Throws:</h5>
1873
+
1874
+
1875
+
1876
+ <dl>
1877
+ <dt>
1878
+ <div class="param-desc usertext">
1879
+ <p>A validation error is thrown if either parameter
1880
+ is missing or invalid.</p>
1881
+ </div>
1882
+ </dt>
1883
+ <dd></dd>
1884
+ <dt>
1885
+ <dl class="param-type">
1886
+ <dt>
1887
+ Type
1888
+ </dt>
1889
+ <dd>
1890
+
1891
+ <span class="param-type">ValidationError</span>
1892
+
1893
+
1894
+
1895
+ </dd>
1896
+ </dl>
1897
+ </dt>
1898
+ <dd></dd>
1899
+ </dl>
1900
+
1901
+
1902
+
1903
+
1904
+
1905
+
1906
+
1907
+
1908
+
1909
+
1910
+
1911
+
1912
+
1913
+ <h4 class="name" id="registerTemplate"><span class="type-signature"></span>registerTemplate<span class="signature">(name, template)</span><span class="type-signature"></span></h4>
1914
+
1915
+
1916
+
1917
+
1918
+
1919
+
1920
+ <dl class="details">
1921
+
1922
+ <dt class="tag-description">Description:</dt>
1923
+ <dd class="tag-description"><ul class="dummy"><li><p>Register a link template.</p></li></ul></dd>
1924
+
1925
+
1926
+
1927
+ <dt class="tag-source">Source:</dt>
1928
+ <dd class="tag-source"><ul class="dummy"><li>
1929
+ <a href="Linkifier.class.mjs.html">Linkifier.class.mjs</a>, <a href="Linkifier.class.mjs.html#line221">line 221</a>
1930
+ </li></ul></dd>
1931
+
1932
+
1933
+
1934
+
1935
+
1936
+
1937
+
1938
+
1939
+
1940
+
1941
+
1942
+
1943
+
1944
+
1945
+
1946
+
1947
+
1948
+
1949
+
1950
+
1951
+
1952
+
1953
+
1954
+
1955
+
1956
+
1957
+
1958
+
1959
+
1960
+
1961
+
1962
+ </dl>
1963
+
1964
+
1965
+
1966
+
1967
+
1968
+
1969
+
1970
+
1971
+
1972
+
1973
+
1974
+
1975
+
1976
+ <h5 class="h5-parameters">Parameters:</h5>
1977
+
1978
+
1979
+ <table class="params">
1980
+ <thead>
1981
+ <tr>
1982
+
1983
+ <th>Name</th>
1984
+
1985
+
1986
+ <th>Type</th>
1987
+
1988
+
1989
+
1990
+
1991
+
1992
+ <th class="last">Description</th>
1993
+ </tr>
1994
+ </thead>
1995
+
1996
+ <tbody>
1997
+
1998
+
1999
+ <tr>
2000
+
2001
+ <td class="name"><code>name</code></td>
2002
+
2003
+
2004
+ <td class="type">
2005
+
2006
+
2007
+ <span class="param-type">string</span>
2008
+
2009
+
2010
+
2011
+
2012
+ </td>
2013
+
2014
+
2015
+
2016
+
2017
+
2018
+ <td class="description last"></td>
2019
+ </tr>
2020
+
2021
+
2022
+
2023
+ <tr>
2024
+
2025
+ <td class="name"><code>template</code></td>
2026
+
2027
+
2028
+ <td class="type">
2029
+
2030
+
2031
+ <span class="param-type">LinkTemplate</span>
2032
+
2033
+
2034
+
2035
+
2036
+ </td>
2037
+
2038
+
2039
+
2040
+
2041
+
2042
+ <td class="description last"></td>
2043
+ </tr>
2044
+
2045
+
2046
+ </tbody>
2047
+ </table>
2048
+
2049
+
2050
+
2051
+
2052
+
2053
+
2054
+
2055
+
2056
+
2057
+
2058
+
2059
+
2060
+
2061
+
2062
+ <h5 class="h5-throws">Throws:</h5>
2063
+
2064
+
2065
+
2066
+ <dl>
2067
+ <dt>
2068
+ <div class="param-desc usertext">
2069
+ <p>A validation error is thrown unless both a valid
2070
+ name and template object are passed.</p>
2071
+ </div>
2072
+ </dt>
2073
+ <dd></dd>
2074
+ <dt>
2075
+ <dl class="param-type">
2076
+ <dt>
2077
+ Type
2078
+ </dt>
2079
+ <dd>
2080
+
2081
+ <span class="param-type">ValidationError</span>
2082
+
2083
+
2084
+
2085
+ </dd>
2086
+ </dl>
2087
+ </dt>
2088
+ <dd></dd>
2089
+ </dl>
2090
+
2091
+
2092
+
2093
+
2094
+
2095
+
2096
+
2097
+
2098
+
2099
+
2100
+
2101
+
2102
+
2103
+ <h4 class="name" id="registerTransformer"><span class="type-signature"></span>registerTransformer<span class="signature">(domain, transformerFn)</span><span class="type-signature"></span></h4>
2104
+
2105
+
2106
+
2107
+
2108
+
2109
+
2110
+ <dl class="details">
2111
+
2112
+ <dt class="tag-description">Description:</dt>
2113
+ <dd class="tag-description"><ul class="dummy"><li><p>Register a data transformer function for a given domain.</p></li></ul></dd>
2114
+
2115
+
2116
+
2117
+ <dt class="tag-source">Source:</dt>
2118
+ <dd class="tag-source"><ul class="dummy"><li>
2119
+ <a href="Linkifier.class.mjs.html">Linkifier.class.mjs</a>, <a href="Linkifier.class.mjs.html#line132">line 132</a>
2120
+ </li></ul></dd>
2121
+
2122
+
2123
+
2124
+
2125
+
2126
+
2127
+
2128
+
2129
+
2130
+
2131
+
2132
+
2133
+
2134
+
2135
+
2136
+
2137
+
2138
+
2139
+
2140
+
2141
+
2142
+
2143
+
2144
+
2145
+
2146
+
2147
+
2148
+
2149
+
2150
+
2151
+
2152
+ </dl>
2153
+
2154
+
2155
+
2156
+
2157
+
2158
+
2159
+
2160
+
2161
+
2162
+
2163
+
2164
+
2165
+
2166
+ <h5 class="h5-parameters">Parameters:</h5>
2167
+
2168
+
2169
+ <table class="params">
2170
+ <thead>
2171
+ <tr>
2172
+
2173
+ <th>Name</th>
2174
+
2175
+
2176
+ <th>Type</th>
2177
+
2178
+
2179
+
2180
+
2181
+
2182
+ <th class="last">Description</th>
2183
+ </tr>
2184
+ </thead>
2185
+
2186
+ <tbody>
2187
+
2188
+
2189
+ <tr>
2190
+
2191
+ <td class="name"><code>domain</code></td>
2192
+
2193
+
2194
+ <td class="type">
2195
+
2196
+
2197
+ <span class="param-type">domainName</span>
2198
+
2199
+
2200
+
2201
+
2202
+ </td>
2203
+
2204
+
2205
+
2206
+
2207
+
2208
+ <td class="description last"><p>The domain for which this transformer should be
2209
+ used.</p></td>
2210
+ </tr>
2211
+
2212
+
2213
+
2214
+ <tr>
2215
+
2216
+ <td class="name"><code>transformerFn</code></td>
2217
+
2218
+
2219
+ <td class="type">
2220
+
2221
+
2222
+ <span class="param-type">dataTransformer</span>
2223
+
2224
+
2225
+
2226
+
2227
+ </td>
2228
+
2229
+
2230
+
2231
+
2232
+
2233
+ <td class="description last"><p>The data transformer callback.</p></td>
2234
+ </tr>
2235
+
2236
+
2237
+ </tbody>
2238
+ </table>
2239
+
2240
+
2241
+
2242
+
2243
+
2244
+
2245
+
2246
+
2247
+
2248
+
2249
+
2250
+
2251
+
2252
+
2253
+ <h5 class="h5-throws">Throws:</h5>
2254
+
2255
+
2256
+
2257
+ <dl>
2258
+ <dt>
2259
+ <div class="param-desc usertext">
2260
+ <p>A validation error is thrown if either parameter
2261
+ is missing or invalid.</p>
2262
+ </div>
2263
+ </dt>
2264
+ <dd></dd>
2265
+ <dt>
2266
+ <dl class="param-type">
2267
+ <dt>
2268
+ Type
2269
+ </dt>
2270
+ <dd>
2271
+
2272
+ <span class="param-type">ValidationError</span>
2273
+
2274
+
2275
+
2276
+ </dd>
2277
+ </dl>
2278
+ </dt>
2279
+ <dd></dd>
2280
+ </dl>
2281
+
2282
+
2283
+
2284
+
2285
+
2286
+
2287
+
2288
+
2289
+
2290
+
2291
+
2292
+
2293
+
2294
+
2295
+ </article>
2296
+
2297
+ </section>
2298
+
2299
+
2300
+
2301
+
2302
+
2303
+
2304
+ </div>
2305
+
2306
+ <br class="clear">
2307
+
2308
+ <footer>
2309
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Mon Apr 13 2026 16:45:07 GMT+0100 (Irish Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
2310
+ </footer>
2311
+
2312
+ <script>prettyPrint();</script>
2313
+ <script src="scripts/polyfill.js"></script>
2314
+ <script src="scripts/linenumber.js"></script>
2315
+
2316
+ <script src="scripts/search.js" defer></script>
2317
+
2318
+
2319
+
2320
+ <link type="text/css" rel="stylesheet" href="./docdash-overrides.css">
2321
+
2322
+ </body>
2323
+ </html>