@bartificer/linkify 2.3.5 → 2.4.1

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 (102) hide show
  1. package/README.md +135 -35
  2. package/dist/index.js +1 -1
  3. package/docs/LinkData.class.mjs.html +119 -56
  4. package/docs/LinkTemplate.class.mjs.html +120 -36
  5. package/docs/Linkifier.class.mjs.html +141 -66
  6. package/docs/PageData.class.mjs.html +145 -72
  7. package/docs/defaults.mjs.html +136 -12
  8. package/docs/docdash-overrides.css +11 -0
  9. package/docs/externals.jsdoc.html +95 -4
  10. package/docs/fonts/Montserrat/Montserrat-Bold.eot +0 -0
  11. package/docs/fonts/Montserrat/Montserrat-Bold.ttf +0 -0
  12. package/docs/fonts/Montserrat/Montserrat-Bold.woff +0 -0
  13. package/docs/fonts/Montserrat/Montserrat-Bold.woff2 +0 -0
  14. package/docs/fonts/Montserrat/Montserrat-Regular.eot +0 -0
  15. package/docs/fonts/Montserrat/Montserrat-Regular.ttf +0 -0
  16. package/docs/fonts/Montserrat/Montserrat-Regular.woff +0 -0
  17. package/docs/fonts/Montserrat/Montserrat-Regular.woff2 +0 -0
  18. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.eot +0 -0
  19. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.svg +978 -0
  20. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.ttf +0 -0
  21. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff +0 -0
  22. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff2 +0 -0
  23. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.eot +0 -0
  24. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.svg +1049 -0
  25. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.ttf +0 -0
  26. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff +0 -0
  27. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff2 +0 -0
  28. package/docs/global.html +1276 -0
  29. package/docs/index.html +1018 -26
  30. package/docs/index.js.html +143 -17
  31. package/docs/mermaid-init.js +21 -0
  32. package/docs/module-cheerio.html +193 -3
  33. package/docs/module-defaults.html +680 -3
  34. package/docs/module-link-data.LinkData.html +813 -0
  35. package/docs/module-link-data.html +226 -0
  36. package/docs/module-link-template.LinkTemplate.html +792 -0
  37. package/docs/module-link-template.html +226 -0
  38. package/docs/module-linkifier.Linkifier.html +2050 -0
  39. package/docs/module-linkifier.html +236 -0
  40. package/docs/module-linkify.html +810 -3
  41. package/docs/module-mustache.html +193 -3
  42. package/docs/module-node-fetch.html +193 -3
  43. package/docs/module-page-data.PageData.html +1810 -0
  44. package/docs/module-page-data.html +226 -0
  45. package/docs/module-title-case.html +193 -3
  46. package/docs/module-urijs.html +193 -3
  47. package/docs/module-url-slug.html +193 -3
  48. package/docs/module-utilities.html +1518 -3
  49. package/docs/scripts/collapse.js +39 -0
  50. package/docs/scripts/commonNav.js +28 -0
  51. package/docs/scripts/linenumber.js +25 -0
  52. package/docs/scripts/nav.js +12 -0
  53. package/docs/scripts/polyfill.js +4 -0
  54. package/docs/scripts/{third-party → prettify}/Apache-License-2.0.txt +202 -202
  55. package/docs/scripts/prettify/lang-css.js +2 -0
  56. package/docs/scripts/prettify/prettify.js +28 -0
  57. package/docs/scripts/search.js +99 -265
  58. package/docs/styles/jsdoc.css +776 -0
  59. package/docs/styles/prettify.css +80 -0
  60. package/docs/typedefs.jsdoc.html +145 -0
  61. package/docs/utilities.mjs.html +154 -22
  62. package/examples/clipboardURLToMarkdown.mjs +80 -1
  63. package/package.json +5 -3
  64. package/src/LinkData.class.mjs +24 -52
  65. package/src/LinkTemplate.class.mjs +25 -32
  66. package/src/Linkifier.class.mjs +46 -62
  67. package/src/PageData.class.mjs +50 -68
  68. package/src/defaults.mjs +42 -8
  69. package/src/index.js +48 -13
  70. package/src/typedefs.jsdoc +52 -0
  71. package/src/utilities.mjs +59 -18
  72. package/docs/data/search.json +0 -1
  73. package/docs/fonts/Inconsolata-Regular.ttf +0 -0
  74. package/docs/fonts/OpenSans-Regular.ttf +0 -0
  75. package/docs/fonts/WorkSans-Bold.ttf +0 -0
  76. package/docs/module-LinkData.LinkData.html +0 -13
  77. package/docs/module-LinkData.html +0 -3
  78. package/docs/module-LinkTemplate.LinkTemplate.html +0 -3
  79. package/docs/module-LinkTemplate.html +0 -3
  80. package/docs/module-Linkifier.Linkifier.html +0 -3
  81. package/docs/module-Linkifier.html +0 -3
  82. package/docs/module-PageData.PageData.html +0 -15
  83. package/docs/module-PageData.html +0 -3
  84. package/docs/scripts/core.js +0 -726
  85. package/docs/scripts/core.min.js +0 -23
  86. package/docs/scripts/resize.js +0 -90
  87. package/docs/scripts/search.min.js +0 -6
  88. package/docs/scripts/third-party/fuse.js +0 -9
  89. package/docs/scripts/third-party/hljs-line-num-original.js +0 -369
  90. package/docs/scripts/third-party/hljs-line-num.js +0 -1
  91. package/docs/scripts/third-party/hljs-original.js +0 -5171
  92. package/docs/scripts/third-party/hljs.js +0 -1
  93. package/docs/scripts/third-party/popper.js +0 -5
  94. package/docs/scripts/third-party/tippy.js +0 -1
  95. package/docs/scripts/third-party/tocbot.js +0 -672
  96. package/docs/scripts/third-party/tocbot.min.js +0 -1
  97. package/docs/styles/clean-jsdoc-theme-base.css +0 -1159
  98. package/docs/styles/clean-jsdoc-theme-dark.css +0 -412
  99. package/docs/styles/clean-jsdoc-theme-light.css +0 -482
  100. package/docs/styles/clean-jsdoc-theme-scrollbar.css +0 -30
  101. package/docs/styles/clean-jsdoc-theme-without-scrollbar.min.css +0 -1
  102. package/docs/styles/clean-jsdoc-theme.min.css +0 -1
@@ -0,0 +1,2050 @@
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><ul class='methods'><li data-type='method'><a href="module-defaults.html#.dataTransformer">dataTransformer</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>Global</h3><ul><li><a href="global.html#dataTransformer">dataTransformer</a></li><li><a href="global.html#plainLinkInformationObject">plainLinkInformationObject</a></li><li><a href="global.html#plainPageInformationObject">plainPageInformationObject</a></li><li><a href="global.html#templateFieldFilterFunction">templateFieldFilterFunction</a></li><li><a href="global.html#templateFieldFilterTuple">templateFieldFilterTuple</a></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
+ <dt class="tag-description">Description:</dt>
97
+ <dd class="tag-description"><ul class="dummy"><li><p>Builds a Linkifier instance ready for use rendering links using the default configration.</p></li></ul></dd>
98
+
99
+
100
+
101
+ <dt class="tag-source">Source:</dt>
102
+ <dd class="tag-source"><ul class="dummy"><li>
103
+ <a href="Linkifier.class.mjs.html">Linkifier.class.mjs</a>, <a href="Linkifier.class.mjs.html#line30">line 30</a>
104
+ </li></ul></dd>
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
+
134
+ <dt class="tag-see">See:</dt>
135
+ <dd class="tag-see">
136
+ <ul>
137
+ <li><a href="module-defaults.html">module:defaults</a> for the default configuration settings.</li>
138
+ </ul>
139
+ </dd>
140
+
141
+
142
+
143
+ </dl>
144
+
145
+
146
+
147
+
148
+
149
+
150
+
151
+
152
+
153
+
154
+
155
+
156
+
157
+
158
+
159
+
160
+
161
+
162
+
163
+
164
+
165
+
166
+
167
+
168
+
169
+
170
+
171
+
172
+
173
+
174
+
175
+ </div>
176
+
177
+
178
+
179
+
180
+
181
+
182
+
183
+
184
+
185
+
186
+
187
+
188
+
189
+
190
+
191
+ <h3 class="subsection-title">Members</h3>
192
+
193
+
194
+
195
+ <h4 class="name" id="defaultTemplate"><span class="type-signature type-signature-readonly">(readonly) </span>defaultTemplate<span class="type-signature"> :<a href="module-link-template.LinkTemplate.html">module:link-template.LinkTemplate</a></span></h4>
196
+
197
+
198
+
199
+
200
+
201
+ <dl class="details">
202
+
203
+ <dt class="tag-description">Description:</dt>
204
+ <dd class="tag-description"><ul class="dummy"><li><p>The default link template.</p></li></ul></dd>
205
+
206
+
207
+
208
+ <dt class="tag-source">Source:</dt>
209
+ <dd class="tag-source"><ul class="dummy"><li>
210
+ <a href="Linkifier.class.mjs.html">Linkifier.class.mjs</a>, <a href="Linkifier.class.mjs.html#line202">line 202</a>
211
+ </li></ul></dd>
212
+
213
+
214
+
215
+
216
+
217
+
218
+
219
+
220
+
221
+
222
+
223
+
224
+
225
+
226
+
227
+
228
+
229
+
230
+
231
+
232
+
233
+
234
+
235
+
236
+
237
+
238
+
239
+
240
+
241
+
242
+
243
+ </dl>
244
+
245
+
246
+
247
+
248
+
249
+ <div class="description usertext">
250
+ <p>The default link template.</p>
251
+ </div>
252
+
253
+
254
+
255
+ <h5 class="h5-types">Type:</h5>
256
+ <ul>
257
+ <li>
258
+
259
+ <span class="param-type"><a href="module-link-template.LinkTemplate.html">module:link-template.LinkTemplate</a></span>
260
+
261
+
262
+
263
+ </li>
264
+ </ul>
265
+
266
+
267
+
268
+
269
+
270
+
271
+
272
+
273
+ <h4 class="name" id="defaultTemplateName"><span class="type-signature"></span>defaultTemplateName<span class="type-signature"> :string</span></h4>
274
+
275
+
276
+
277
+
278
+
279
+ <dl class="details">
280
+
281
+ <dt class="tag-description">Description:</dt>
282
+ <dd class="tag-description"><ul class="dummy"><li><p>The name of the default template used when rendering links.</p></li></ul></dd>
283
+
284
+
285
+
286
+ <dt class="tag-source">Source:</dt>
287
+ <dd class="tag-source"><ul class="dummy"><li>
288
+ <a href="Linkifier.class.mjs.html">Linkifier.class.mjs</a>, <a href="Linkifier.class.mjs.html#line186">line 186</a>
289
+ </li></ul></dd>
290
+
291
+
292
+
293
+
294
+
295
+
296
+
297
+
298
+
299
+
300
+
301
+
302
+
303
+
304
+
305
+
306
+
307
+
308
+
309
+
310
+
311
+
312
+
313
+
314
+
315
+
316
+
317
+
318
+
319
+
320
+
321
+ </dl>
322
+
323
+
324
+
325
+
326
+
327
+ <div class="description usertext">
328
+ <p>The name of the default template used when rendering links.</p>
329
+ </div>
330
+
331
+
332
+
333
+ <h5 class="h5-types">Type:</h5>
334
+ <ul>
335
+ <li>
336
+
337
+ <span class="param-type">string</span>
338
+
339
+
340
+
341
+ </li>
342
+ </ul>
343
+
344
+
345
+
346
+
347
+
348
+
349
+
350
+
351
+ <h4 class="name" id="speciallyCapitalisedWords"><span class="type-signature"></span>speciallyCapitalisedWords<span class="type-signature"> :Array.&lt;string></span></h4>
352
+
353
+
354
+
355
+
356
+
357
+ <dl class="details">
358
+
359
+ <dt class="tag-description">Description:</dt>
360
+ <dd class="tag-description"><ul class="dummy"><li><p>The list of known words with special capitalisations. The words should be capitalised in the descired manner.</p></li></ul></dd>
361
+
362
+
363
+
364
+ <dt class="tag-source">Source:</dt>
365
+ <dd class="tag-source"><ul class="dummy"><li>
366
+ <a href="Linkifier.class.mjs.html">Linkifier.class.mjs</a>, <a href="Linkifier.class.mjs.html#line110">line 110</a>
367
+ </li></ul></dd>
368
+
369
+
370
+
371
+
372
+
373
+
374
+
375
+
376
+
377
+
378
+
379
+
380
+
381
+
382
+
383
+
384
+
385
+
386
+
387
+
388
+
389
+
390
+
391
+
392
+
393
+
394
+
395
+
396
+
397
+
398
+
399
+ </dl>
400
+
401
+
402
+
403
+
404
+
405
+ <div class="description usertext">
406
+ <p>The list of known words with special capitalisations. The words should be capitalised in the descired manner.</p>
407
+ </div>
408
+
409
+
410
+
411
+ <h5 class="h5-types">Type:</h5>
412
+ <ul>
413
+ <li>
414
+
415
+ <span class="param-type">Array.&lt;string></span>
416
+
417
+
418
+
419
+ </li>
420
+ </ul>
421
+
422
+
423
+
424
+
425
+
426
+
427
+
428
+
429
+ <h4 class="name" id="templateNames"><span class="type-signature type-signature-readonly">(readonly) </span>templateNames<span class="type-signature"> :Array.&lt;string></span></h4>
430
+
431
+
432
+
433
+
434
+
435
+ <dl class="details">
436
+
437
+ <dt class="tag-description">Description:</dt>
438
+ <dd class="tag-description"><ul class="dummy"><li><p>A list of the names of the registered link templates.</p></li></ul></dd>
439
+
440
+
441
+
442
+ <dt class="tag-source">Source:</dt>
443
+ <dd class="tag-source"><ul class="dummy"><li>
444
+ <a href="Linkifier.class.mjs.html">Linkifier.class.mjs</a>, <a href="Linkifier.class.mjs.html#line177">line 177</a>
445
+ </li></ul></dd>
446
+
447
+
448
+
449
+
450
+
451
+
452
+
453
+
454
+
455
+
456
+
457
+
458
+
459
+
460
+
461
+
462
+
463
+
464
+
465
+
466
+
467
+
468
+
469
+
470
+
471
+
472
+
473
+
474
+
475
+
476
+
477
+ </dl>
478
+
479
+
480
+
481
+
482
+
483
+ <div class="description usertext">
484
+ <p>A list of the names of the registered link templates.</p>
485
+ </div>
486
+
487
+
488
+
489
+ <h5 class="h5-types">Type:</h5>
490
+ <ul>
491
+ <li>
492
+
493
+ <span class="param-type">Array.&lt;string></span>
494
+
495
+
496
+
497
+ </li>
498
+ </ul>
499
+
500
+
501
+
502
+
503
+
504
+
505
+
506
+
507
+ <h4 class="name" id="util"><span class="type-signature"></span>util<span class="type-signature"></span></h4>
508
+
509
+
510
+
511
+
512
+
513
+ <dl class="details">
514
+
515
+ <dt class="tag-description">Description:</dt>
516
+ <dd class="tag-description"><ul class="dummy"><li><p>Shorthand property for <code>.utilities</code>.</p></li></ul></dd>
517
+
518
+
519
+
520
+ <dt class="tag-source">Source:</dt>
521
+ <dd class="tag-source"><ul class="dummy"><li>
522
+ <a href="Linkifier.class.mjs.html">Linkifier.class.mjs</a>, <a href="Linkifier.class.mjs.html#line102">line 102</a>
523
+ </li></ul></dd>
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
+
552
+
553
+ <dt class="tag-see">See:</dt>
554
+ <dd class="tag-see">
555
+ <ul>
556
+ <li><a href="module-linkifier.Linkifier.html#utilities">module:linkifier.Linkifier#utilities</a></li>
557
+ </ul>
558
+ </dd>
559
+
560
+
561
+
562
+ </dl>
563
+
564
+
565
+
566
+
567
+
568
+ <div class="description usertext">
569
+ <p>Shorthand property for <code>.utilities</code>.</p>
570
+ </div>
571
+
572
+
573
+
574
+
575
+
576
+
577
+
578
+
579
+
580
+
581
+ <h4 class="name" id="utilities"><span class="type-signature type-signature-readonly">(readonly) </span>utilities<span class="type-signature"> :Object.&lt;string, function()></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#line94">line 94</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><a href="module-utilities.html">module:utilities</a> for the utility functions available in this collection.</li>
628
+ </ul>
629
+ </dd>
630
+
631
+
632
+
633
+ </dl>
634
+
635
+
636
+
637
+
638
+
639
+
640
+
641
+ <h5 class="h5-types">Type:</h5>
642
+ <ul>
643
+ <li>
644
+
645
+ <span class="param-type">Object.&lt;string, function()></span>
646
+
647
+
648
+
649
+ </li>
650
+ </ul>
651
+
652
+
653
+
654
+
655
+
656
+
657
+
658
+
659
+
660
+
661
+ <h3 class="subsection-title">Methods</h3>
662
+
663
+
664
+
665
+
666
+
667
+
668
+ <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; {<a href="module-page-data.PageData.html">module:page-data.PageData</a>}</span></h4>
669
+
670
+
671
+
672
+
673
+
674
+
675
+ <dl class="details">
676
+
677
+ <dt class="tag-description">Description:</dt>
678
+ <dd class="tag-description"><ul class="dummy"><li><p>Fetch the page data for a given URL.</p></li></ul></dd>
679
+
680
+
681
+
682
+ <dt class="tag-source">Source:</dt>
683
+ <dd class="tag-source"><ul class="dummy"><li>
684
+ <a href="Linkifier.class.mjs.html">Linkifier.class.mjs</a>, <a href="Linkifier.class.mjs.html#line301">line 301</a>
685
+ </li></ul></dd>
686
+
687
+
688
+
689
+
690
+
691
+
692
+
693
+
694
+
695
+
696
+
697
+
698
+
699
+
700
+
701
+
702
+
703
+
704
+
705
+
706
+
707
+
708
+
709
+
710
+
711
+
712
+
713
+
714
+
715
+
716
+
717
+ </dl>
718
+
719
+
720
+
721
+
722
+
723
+
724
+
725
+
726
+
727
+
728
+
729
+
730
+
731
+ <h5 class="h5-parameters">Parameters:</h5>
732
+
733
+
734
+ <table class="params">
735
+ <thead>
736
+ <tr>
737
+
738
+ <th>Name</th>
739
+
740
+
741
+ <th>Type</th>
742
+
743
+
744
+
745
+
746
+
747
+ <th class="last">Description</th>
748
+ </tr>
749
+ </thead>
750
+
751
+ <tbody>
752
+
753
+
754
+ <tr>
755
+
756
+ <td class="name"><code>url</code></td>
757
+
758
+
759
+ <td class="type">
760
+
761
+
762
+ <span class="param-type">string</span>
763
+
764
+
765
+
766
+
767
+ </td>
768
+
769
+
770
+
771
+
772
+
773
+ <td class="description last"></td>
774
+ </tr>
775
+
776
+
777
+ </tbody>
778
+ </table>
779
+
780
+
781
+
782
+
783
+
784
+
785
+
786
+
787
+
788
+
789
+
790
+
791
+
792
+
793
+
794
+
795
+ <h5 class="h5-returns">Returns:</h5>
796
+
797
+
798
+
799
+
800
+ <dl class="param-type">
801
+ <dt>
802
+ Type
803
+ </dt>
804
+ <dd>
805
+
806
+ <span class="param-type"><a href="module-page-data.PageData.html">module:page-data.PageData</a></span>
807
+
808
+
809
+
810
+ </dd>
811
+ </dl>
812
+
813
+
814
+
815
+
816
+
817
+
818
+
819
+
820
+
821
+
822
+ <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>
823
+
824
+
825
+
826
+
827
+
828
+
829
+ <dl class="details">
830
+
831
+ <dt class="tag-description">Description:</dt>
832
+ <dd class="tag-description"><ul class="dummy"><li><p>Generate a link given a URL. By default the registered template for the
833
+ URL's domain will be used, or, if none is registered, the overall
834
+ default will be used (<code>html</code>).</p></li></ul></dd>
835
+
836
+
837
+
838
+ <dt class="tag-source">Source:</dt>
839
+ <dd class="tag-source"><ul class="dummy"><li>
840
+ <a href="Linkifier.class.mjs.html">Linkifier.class.mjs</a>, <a href="Linkifier.class.mjs.html#line343">line 343</a>
841
+ </li></ul></dd>
842
+
843
+
844
+
845
+
846
+
847
+
848
+
849
+
850
+
851
+
852
+
853
+
854
+
855
+
856
+
857
+
858
+
859
+
860
+
861
+
862
+
863
+
864
+
865
+
866
+
867
+
868
+
869
+
870
+
871
+
872
+
873
+ </dl>
874
+
875
+
876
+
877
+
878
+
879
+
880
+
881
+
882
+
883
+
884
+
885
+
886
+
887
+ <h5 class="h5-parameters">Parameters:</h5>
888
+
889
+
890
+ <table class="params">
891
+ <thead>
892
+ <tr>
893
+
894
+ <th>Name</th>
895
+
896
+
897
+ <th>Type</th>
898
+
899
+
900
+ <th>Attributes</th>
901
+
902
+
903
+
904
+ <th>Default</th>
905
+
906
+
907
+ <th class="last">Description</th>
908
+ </tr>
909
+ </thead>
910
+
911
+ <tbody>
912
+
913
+
914
+ <tr>
915
+
916
+ <td class="name"><code>url</code></td>
917
+
918
+
919
+ <td class="type">
920
+
921
+
922
+ <span class="param-type">string</span>
923
+
924
+
925
+
926
+
927
+ </td>
928
+
929
+
930
+ <td class="attributes">
931
+
932
+
933
+
934
+
935
+
936
+ </td>
937
+
938
+
939
+
940
+ <td class="default">
941
+
942
+ </td>
943
+
944
+
945
+ <td class="description last"></td>
946
+ </tr>
947
+
948
+
949
+
950
+ <tr>
951
+
952
+ <td class="name"><code>templateName</code></td>
953
+
954
+
955
+ <td class="type">
956
+
957
+
958
+ <span class="param-type">string</span>
959
+
960
+
961
+
962
+
963
+ </td>
964
+
965
+
966
+ <td class="attributes">
967
+
968
+ &lt;optional><br>
969
+
970
+
971
+
972
+
973
+
974
+ </td>
975
+
976
+
977
+
978
+ <td class="default">
979
+
980
+ <code>'html'</code>
981
+
982
+ </td>
983
+
984
+
985
+ <td class="description last"></td>
986
+ </tr>
987
+
988
+
989
+ </tbody>
990
+ </table>
991
+
992
+
993
+
994
+
995
+
996
+
997
+
998
+
999
+
1000
+
1001
+
1002
+
1003
+
1004
+
1005
+
1006
+
1007
+ <h5 class="h5-returns">Returns:</h5>
1008
+
1009
+
1010
+
1011
+
1012
+ <dl class="param-type">
1013
+ <dt>
1014
+ Type
1015
+ </dt>
1016
+ <dd>
1017
+
1018
+ <span class="param-type">string</span>
1019
+
1020
+
1021
+
1022
+ </dd>
1023
+ </dl>
1024
+
1025
+
1026
+
1027
+
1028
+
1029
+
1030
+
1031
+
1032
+
1033
+
1034
+ <h4 class="name" id="getTemplate"><span class="type-signature"></span>getTemplate<span class="signature">(templateName)</span><span class="type-signature"> &rarr; {<a href="module-link-template.LinkTemplate.html">module:link-template.LinkTemplate</a>}</span></h4>
1035
+
1036
+
1037
+
1038
+
1039
+
1040
+
1041
+ <dl class="details">
1042
+
1043
+ <dt class="tag-description">Description:</dt>
1044
+ <dd class="tag-description"><ul class="dummy"><li><p>Get a registered link template by name.</p></li></ul></dd>
1045
+
1046
+
1047
+
1048
+ <dt class="tag-source">Source:</dt>
1049
+ <dd class="tag-source"><ul class="dummy"><li>
1050
+ <a href="Linkifier.class.mjs.html">Linkifier.class.mjs</a>, <a href="Linkifier.class.mjs.html#line226">line 226</a>
1051
+ </li></ul></dd>
1052
+
1053
+
1054
+
1055
+
1056
+
1057
+
1058
+
1059
+
1060
+
1061
+
1062
+
1063
+
1064
+
1065
+
1066
+
1067
+
1068
+
1069
+
1070
+
1071
+
1072
+
1073
+
1074
+
1075
+
1076
+
1077
+
1078
+
1079
+
1080
+
1081
+
1082
+
1083
+ </dl>
1084
+
1085
+
1086
+
1087
+
1088
+
1089
+
1090
+
1091
+
1092
+
1093
+
1094
+
1095
+
1096
+
1097
+ <h5 class="h5-parameters">Parameters:</h5>
1098
+
1099
+
1100
+ <table class="params">
1101
+ <thead>
1102
+ <tr>
1103
+
1104
+ <th>Name</th>
1105
+
1106
+
1107
+ <th>Type</th>
1108
+
1109
+
1110
+
1111
+
1112
+
1113
+ <th class="last">Description</th>
1114
+ </tr>
1115
+ </thead>
1116
+
1117
+ <tbody>
1118
+
1119
+
1120
+ <tr>
1121
+
1122
+ <td class="name"><code>templateName</code></td>
1123
+
1124
+
1125
+ <td class="type">
1126
+
1127
+
1128
+ <span class="param-type">string</span>
1129
+
1130
+
1131
+
1132
+
1133
+ </td>
1134
+
1135
+
1136
+
1137
+
1138
+
1139
+ <td class="description last"></td>
1140
+ </tr>
1141
+
1142
+
1143
+ </tbody>
1144
+ </table>
1145
+
1146
+
1147
+
1148
+
1149
+
1150
+
1151
+
1152
+
1153
+
1154
+
1155
+
1156
+
1157
+
1158
+
1159
+ <h5 class="h5-throws">Throws:</h5>
1160
+
1161
+
1162
+
1163
+ <dl>
1164
+ <dt>
1165
+ <div class="param-desc usertext">
1166
+ <p>A validation error is thrown unless a valid name is passed and corresponds to a registered template.</p>
1167
+ </div>
1168
+ </dt>
1169
+ <dd></dd>
1170
+ <dt>
1171
+ <dl class="param-type">
1172
+ <dt>
1173
+ Type
1174
+ </dt>
1175
+ <dd>
1176
+
1177
+ <span class="param-type">ValidationError</span>
1178
+
1179
+
1180
+
1181
+ </dd>
1182
+ </dl>
1183
+ </dt>
1184
+ <dd></dd>
1185
+ </dl>
1186
+
1187
+
1188
+
1189
+
1190
+
1191
+ <h5 class="h5-returns">Returns:</h5>
1192
+
1193
+
1194
+
1195
+
1196
+ <dl class="param-type">
1197
+ <dt>
1198
+ Type
1199
+ </dt>
1200
+ <dd>
1201
+
1202
+ <span class="param-type"><a href="module-link-template.LinkTemplate.html">module:link-template.LinkTemplate</a></span>
1203
+
1204
+
1205
+
1206
+ </dd>
1207
+ </dl>
1208
+
1209
+
1210
+
1211
+
1212
+
1213
+
1214
+
1215
+
1216
+
1217
+
1218
+ <h4 class="name" id="getTemplateNameForDomain"><span class="type-signature"></span>getTemplateNameForDomain<span class="signature">(domain)</span><span class="type-signature"> &rarr; {<a href="global.html#dataTransformer">dataTransformer</a>}</span></h4>
1219
+
1220
+
1221
+
1222
+
1223
+
1224
+
1225
+ <dl class="details">
1226
+
1227
+ <dt class="tag-description">Description:</dt>
1228
+ <dd class="tag-description"><ul class="dummy"><li><p>Get the data transformer function for a given domain.</p>
1229
+ <p>Note that domains are searched from the subdomain up. For example, if passed
1230
+ the domain <code>www.bartificer.ie</code> the function will first look for a
1231
+ transformer for the domain <code>www.bartificer.ie</code>, if there's no transformer
1232
+ registered for that domain it will look for a transformer for the domain
1233
+ <code>bartificer.ie</code>, if there's no transformer for that domain either it will
1234
+ return the default transformer.</p></li></ul></dd>
1235
+
1236
+
1237
+
1238
+ <dt class="tag-source">Source:</dt>
1239
+ <dd class="tag-source"><ul class="dummy"><li>
1240
+ <a href="Linkifier.class.mjs.html">Linkifier.class.mjs</a>, <a href="Linkifier.class.mjs.html#line265">line 265</a>
1241
+ </li></ul></dd>
1242
+
1243
+
1244
+
1245
+
1246
+
1247
+
1248
+
1249
+
1250
+
1251
+
1252
+
1253
+
1254
+
1255
+
1256
+
1257
+
1258
+
1259
+
1260
+
1261
+
1262
+
1263
+
1264
+
1265
+
1266
+
1267
+
1268
+
1269
+
1270
+
1271
+
1272
+
1273
+ </dl>
1274
+
1275
+
1276
+
1277
+
1278
+
1279
+
1280
+
1281
+
1282
+
1283
+
1284
+
1285
+
1286
+
1287
+ <h5 class="h5-parameters">Parameters:</h5>
1288
+
1289
+
1290
+ <table class="params">
1291
+ <thead>
1292
+ <tr>
1293
+
1294
+ <th>Name</th>
1295
+
1296
+
1297
+ <th>Type</th>
1298
+
1299
+
1300
+
1301
+
1302
+
1303
+ <th class="last">Description</th>
1304
+ </tr>
1305
+ </thead>
1306
+
1307
+ <tbody>
1308
+
1309
+
1310
+ <tr>
1311
+
1312
+ <td class="name"><code>domain</code></td>
1313
+
1314
+
1315
+ <td class="type">
1316
+
1317
+
1318
+ <span class="param-type">string</span>
1319
+
1320
+
1321
+
1322
+
1323
+ </td>
1324
+
1325
+
1326
+
1327
+
1328
+
1329
+ <td class="description last"><p>The fully qualified domain name to get the data transformer for.</p></td>
1330
+ </tr>
1331
+
1332
+
1333
+ </tbody>
1334
+ </table>
1335
+
1336
+
1337
+
1338
+
1339
+
1340
+
1341
+
1342
+
1343
+
1344
+
1345
+
1346
+
1347
+
1348
+
1349
+
1350
+
1351
+ <h5 class="h5-returns">Returns:</h5>
1352
+
1353
+
1354
+
1355
+
1356
+ <dl class="param-type">
1357
+ <dt>
1358
+ Type
1359
+ </dt>
1360
+ <dd>
1361
+
1362
+ <span class="param-type"><a href="global.html#dataTransformer">dataTransformer</a></span>
1363
+
1364
+
1365
+
1366
+ </dd>
1367
+ </dl>
1368
+
1369
+
1370
+
1371
+
1372
+
1373
+
1374
+
1375
+
1376
+
1377
+
1378
+ <h4 class="name" id="getTransformerForDomain"><span class="type-signature"></span>getTransformerForDomain<span class="signature">(domain)</span><span class="type-signature"> &rarr; {<a href="global.html#dataTransformer">dataTransformer</a>}</span></h4>
1379
+
1380
+
1381
+
1382
+
1383
+
1384
+
1385
+ <dl class="details">
1386
+
1387
+ <dt class="tag-description">Description:</dt>
1388
+ <dd class="tag-description"><ul class="dummy"><li><p>Get the data transformer function for a given domain.</p>
1389
+ <p>Note that domains are searched from the subdomain up. For example, if passed
1390
+ the domain <code>www.bartificer.ie</code> the function will first look for a
1391
+ transformer for the domain <code>www.bartificer.ie</code>, if there's no transformer
1392
+ registered for that domain it will look for a transformer for the domain
1393
+ <code>bartificer.ie</code>, if there's no transformer for that domain either it will
1394
+ return the default transformer.</p></li></ul></dd>
1395
+
1396
+
1397
+
1398
+ <dt class="tag-source">Source:</dt>
1399
+ <dd class="tag-source"><ul class="dummy"><li>
1400
+ <a href="Linkifier.class.mjs.html">Linkifier.class.mjs</a>, <a href="Linkifier.class.mjs.html#line151">line 151</a>
1401
+ </li></ul></dd>
1402
+
1403
+
1404
+
1405
+
1406
+
1407
+
1408
+
1409
+
1410
+
1411
+
1412
+
1413
+
1414
+
1415
+
1416
+
1417
+
1418
+
1419
+
1420
+
1421
+
1422
+
1423
+
1424
+
1425
+
1426
+
1427
+
1428
+
1429
+
1430
+
1431
+
1432
+
1433
+ </dl>
1434
+
1435
+
1436
+
1437
+
1438
+
1439
+
1440
+
1441
+
1442
+
1443
+
1444
+
1445
+
1446
+
1447
+ <h5 class="h5-parameters">Parameters:</h5>
1448
+
1449
+
1450
+ <table class="params">
1451
+ <thead>
1452
+ <tr>
1453
+
1454
+ <th>Name</th>
1455
+
1456
+
1457
+ <th>Type</th>
1458
+
1459
+
1460
+
1461
+
1462
+
1463
+ <th class="last">Description</th>
1464
+ </tr>
1465
+ </thead>
1466
+
1467
+ <tbody>
1468
+
1469
+
1470
+ <tr>
1471
+
1472
+ <td class="name"><code>domain</code></td>
1473
+
1474
+
1475
+ <td class="type">
1476
+
1477
+
1478
+ <span class="param-type">string</span>
1479
+
1480
+
1481
+
1482
+
1483
+ </td>
1484
+
1485
+
1486
+
1487
+
1488
+
1489
+ <td class="description last"><p>The fully qualified domain for which to get the data transformer.</p></td>
1490
+ </tr>
1491
+
1492
+
1493
+ </tbody>
1494
+ </table>
1495
+
1496
+
1497
+
1498
+
1499
+
1500
+
1501
+
1502
+
1503
+
1504
+
1505
+
1506
+
1507
+
1508
+
1509
+
1510
+
1511
+ <h5 class="h5-returns">Returns:</h5>
1512
+
1513
+
1514
+
1515
+
1516
+ <dl class="param-type">
1517
+ <dt>
1518
+ Type
1519
+ </dt>
1520
+ <dd>
1521
+
1522
+ <span class="param-type"><a href="global.html#dataTransformer">dataTransformer</a></span>
1523
+
1524
+
1525
+
1526
+ </dd>
1527
+ </dl>
1528
+
1529
+
1530
+
1531
+
1532
+
1533
+
1534
+
1535
+
1536
+
1537
+
1538
+ <h4 class="name" id="registerDefaultTemplateMapping"><span class="type-signature"></span>registerDefaultTemplateMapping<span class="signature">(domain, templateName)</span><span class="type-signature"></span></h4>
1539
+
1540
+
1541
+
1542
+
1543
+
1544
+
1545
+ <dl class="details">
1546
+
1547
+ <dt class="tag-description">Description:</dt>
1548
+ <dd class="tag-description"><ul class="dummy"><li><p>Register a default template for use with a given domain. This template will
1549
+ override the overall default for this domain and all its subdomains.</p></li></ul></dd>
1550
+
1551
+
1552
+
1553
+ <dt class="tag-source">Source:</dt>
1554
+ <dd class="tag-source"><ul class="dummy"><li>
1555
+ <a href="Linkifier.class.mjs.html">Linkifier.class.mjs</a>, <a href="Linkifier.class.mjs.html#line242">line 242</a>
1556
+ </li></ul></dd>
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
+
1587
+
1588
+ </dl>
1589
+
1590
+
1591
+
1592
+
1593
+
1594
+
1595
+
1596
+
1597
+
1598
+
1599
+
1600
+
1601
+
1602
+ <h5 class="h5-parameters">Parameters:</h5>
1603
+
1604
+
1605
+ <table class="params">
1606
+ <thead>
1607
+ <tr>
1608
+
1609
+ <th>Name</th>
1610
+
1611
+
1612
+ <th>Type</th>
1613
+
1614
+
1615
+
1616
+
1617
+
1618
+ <th class="last">Description</th>
1619
+ </tr>
1620
+ </thead>
1621
+
1622
+ <tbody>
1623
+
1624
+
1625
+ <tr>
1626
+
1627
+ <td class="name"><code>domain</code></td>
1628
+
1629
+
1630
+ <td class="type">
1631
+
1632
+
1633
+ <span class="param-type">string</span>
1634
+
1635
+
1636
+
1637
+
1638
+ </td>
1639
+
1640
+
1641
+
1642
+
1643
+
1644
+ <td class="description last"><p>The fully qualified domain name for which this template should be used by default.</p></td>
1645
+ </tr>
1646
+
1647
+
1648
+
1649
+ <tr>
1650
+
1651
+ <td class="name"><code>templateName</code></td>
1652
+
1653
+
1654
+ <td class="type">
1655
+
1656
+
1657
+ <span class="param-type">string</span>
1658
+
1659
+
1660
+
1661
+
1662
+ </td>
1663
+
1664
+
1665
+
1666
+
1667
+
1668
+ <td class="description last"><p>The name of the template to use.</p></td>
1669
+ </tr>
1670
+
1671
+
1672
+ </tbody>
1673
+ </table>
1674
+
1675
+
1676
+
1677
+
1678
+
1679
+
1680
+
1681
+
1682
+
1683
+
1684
+
1685
+
1686
+
1687
+
1688
+
1689
+
1690
+
1691
+
1692
+
1693
+
1694
+
1695
+
1696
+
1697
+
1698
+ <h4 class="name" id="registerTemplate"><span class="type-signature"></span>registerTemplate<span class="signature">(name, template)</span><span class="type-signature"></span></h4>
1699
+
1700
+
1701
+
1702
+
1703
+
1704
+
1705
+ <dl class="details">
1706
+
1707
+ <dt class="tag-description">Description:</dt>
1708
+ <dd class="tag-description"><ul class="dummy"><li><p>Register a link template.</p></li></ul></dd>
1709
+
1710
+
1711
+
1712
+ <dt class="tag-source">Source:</dt>
1713
+ <dd class="tag-source"><ul class="dummy"><li>
1714
+ <a href="Linkifier.class.mjs.html">Linkifier.class.mjs</a>, <a href="Linkifier.class.mjs.html#line212">line 212</a>
1715
+ </li></ul></dd>
1716
+
1717
+
1718
+
1719
+
1720
+
1721
+
1722
+
1723
+
1724
+
1725
+
1726
+
1727
+
1728
+
1729
+
1730
+
1731
+
1732
+
1733
+
1734
+
1735
+
1736
+
1737
+
1738
+
1739
+
1740
+
1741
+
1742
+
1743
+
1744
+
1745
+
1746
+
1747
+ </dl>
1748
+
1749
+
1750
+
1751
+
1752
+
1753
+
1754
+
1755
+
1756
+
1757
+
1758
+
1759
+
1760
+
1761
+ <h5 class="h5-parameters">Parameters:</h5>
1762
+
1763
+
1764
+ <table class="params">
1765
+ <thead>
1766
+ <tr>
1767
+
1768
+ <th>Name</th>
1769
+
1770
+
1771
+ <th>Type</th>
1772
+
1773
+
1774
+
1775
+
1776
+
1777
+ <th class="last">Description</th>
1778
+ </tr>
1779
+ </thead>
1780
+
1781
+ <tbody>
1782
+
1783
+
1784
+ <tr>
1785
+
1786
+ <td class="name"><code>name</code></td>
1787
+
1788
+
1789
+ <td class="type">
1790
+
1791
+
1792
+ <span class="param-type">string</span>
1793
+
1794
+
1795
+
1796
+
1797
+ </td>
1798
+
1799
+
1800
+
1801
+
1802
+
1803
+ <td class="description last"></td>
1804
+ </tr>
1805
+
1806
+
1807
+
1808
+ <tr>
1809
+
1810
+ <td class="name"><code>template</code></td>
1811
+
1812
+
1813
+ <td class="type">
1814
+
1815
+
1816
+ <span class="param-type"><a href="module-link-template.LinkTemplate.html">module:link-template.LinkTemplate</a></span>
1817
+
1818
+
1819
+
1820
+
1821
+ </td>
1822
+
1823
+
1824
+
1825
+
1826
+
1827
+ <td class="description last"></td>
1828
+ </tr>
1829
+
1830
+
1831
+ </tbody>
1832
+ </table>
1833
+
1834
+
1835
+
1836
+
1837
+
1838
+
1839
+
1840
+
1841
+
1842
+
1843
+
1844
+
1845
+
1846
+
1847
+
1848
+
1849
+
1850
+
1851
+
1852
+
1853
+
1854
+
1855
+
1856
+
1857
+ <h4 class="name" id="registerTransformer"><span class="type-signature"></span>registerTransformer<span class="signature">(domain, transformerFn)</span><span class="type-signature"></span></h4>
1858
+
1859
+
1860
+
1861
+
1862
+
1863
+
1864
+ <dl class="details">
1865
+
1866
+ <dt class="tag-description">Description:</dt>
1867
+ <dd class="tag-description"><ul class="dummy"><li><p>Register a data transformer function to a domain name.</p></li></ul></dd>
1868
+
1869
+
1870
+
1871
+ <dt class="tag-source">Source:</dt>
1872
+ <dd class="tag-source"><ul class="dummy"><li>
1873
+ <a href="Linkifier.class.mjs.html">Linkifier.class.mjs</a>, <a href="Linkifier.class.mjs.html#line128">line 128</a>
1874
+ </li></ul></dd>
1875
+
1876
+
1877
+
1878
+
1879
+
1880
+
1881
+
1882
+
1883
+
1884
+
1885
+
1886
+
1887
+
1888
+
1889
+
1890
+
1891
+
1892
+
1893
+
1894
+
1895
+
1896
+
1897
+
1898
+
1899
+
1900
+
1901
+
1902
+
1903
+
1904
+
1905
+
1906
+ </dl>
1907
+
1908
+
1909
+
1910
+
1911
+
1912
+
1913
+
1914
+
1915
+
1916
+
1917
+
1918
+
1919
+
1920
+ <h5 class="h5-parameters">Parameters:</h5>
1921
+
1922
+
1923
+ <table class="params">
1924
+ <thead>
1925
+ <tr>
1926
+
1927
+ <th>Name</th>
1928
+
1929
+
1930
+ <th>Type</th>
1931
+
1932
+
1933
+
1934
+
1935
+
1936
+ <th class="last">Description</th>
1937
+ </tr>
1938
+ </thead>
1939
+
1940
+ <tbody>
1941
+
1942
+
1943
+ <tr>
1944
+
1945
+ <td class="name"><code>domain</code></td>
1946
+
1947
+
1948
+ <td class="type">
1949
+
1950
+
1951
+ <span class="param-type">string</span>
1952
+
1953
+
1954
+
1955
+
1956
+ </td>
1957
+
1958
+
1959
+
1960
+
1961
+
1962
+ <td class="description last"><p>The fully qualified domain for which this transformer should be
1963
+ used.</p></td>
1964
+ </tr>
1965
+
1966
+
1967
+
1968
+ <tr>
1969
+
1970
+ <td class="name"><code>transformerFn</code></td>
1971
+
1972
+
1973
+ <td class="type">
1974
+
1975
+
1976
+ <span class="param-type"><a href="global.html#dataTransformer">dataTransformer</a></span>
1977
+
1978
+
1979
+
1980
+
1981
+ </td>
1982
+
1983
+
1984
+
1985
+
1986
+
1987
+ <td class="description last"><p>The data transformer callback.</p></td>
1988
+ </tr>
1989
+
1990
+
1991
+ </tbody>
1992
+ </table>
1993
+
1994
+
1995
+
1996
+
1997
+
1998
+
1999
+
2000
+
2001
+
2002
+
2003
+
2004
+
2005
+
2006
+
2007
+
2008
+
2009
+
2010
+
2011
+
2012
+
2013
+
2014
+
2015
+
2016
+
2017
+
2018
+ </article>
2019
+
2020
+ </section>
2021
+
2022
+
2023
+
2024
+
2025
+
2026
+
2027
+ </div>
2028
+
2029
+ <br class="clear">
2030
+
2031
+ <footer>
2032
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Wed Apr 15 2026 17:49:51 GMT+0100 (Irish Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
2033
+ </footer>
2034
+
2035
+ <script>prettyPrint();</script>
2036
+ <script src="scripts/polyfill.js"></script>
2037
+ <script src="scripts/linenumber.js"></script>
2038
+
2039
+ <script src="scripts/search.js" defer></script>
2040
+
2041
+
2042
+
2043
+ <link type="text/css" rel="stylesheet" href="./docdash-overrides.css">
2044
+
2045
+ <script src="https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js"></script>
2046
+
2047
+ <script src="./mermaid-init.js"></script>
2048
+
2049
+ </body>
2050
+ </html>