wikiparser-node 0.11.0 → 1.0.0-beta.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.
- package/dist/index.d.ts +59 -113
- package/dist/index.js +307 -0
- package/dist/lib/element.d.ts +122 -108
- package/dist/lib/element.js +656 -0
- package/dist/lib/node.d.ts +115 -221
- package/dist/lib/node.js +473 -0
- package/dist/lib/ranges.d.ts +27 -26
- package/dist/lib/ranges.js +130 -0
- package/dist/lib/text.d.ts +36 -28
- package/dist/lib/text.js +215 -0
- package/dist/lib/title.d.ts +25 -12
- package/dist/lib/title.js +100 -0
- package/dist/mixin/attributesParent.js +90 -0
- package/dist/mixin/fixed.js +29 -0
- package/dist/mixin/hidden.js +19 -0
- package/dist/mixin/singleLine.js +23 -0
- package/dist/mixin/sol.js +41 -0
- package/dist/parser/brackets.js +117 -0
- package/dist/parser/commentAndExt.js +48 -0
- package/dist/parser/converter.js +31 -0
- package/dist/parser/externalLinks.js +22 -0
- package/dist/parser/hrAndDoubleUnderscore.js +33 -0
- package/dist/parser/html.js +29 -0
- package/dist/parser/links.js +86 -0
- package/dist/parser/list.js +51 -0
- package/dist/parser/magicLinks.js +32 -0
- package/dist/parser/quotes.js +57 -0
- package/dist/parser/selector.js +158 -0
- package/dist/parser/table.js +108 -0
- package/dist/src/arg.d.ts +47 -23
- package/dist/src/arg.js +196 -0
- package/dist/src/atom.d.ts +12 -0
- package/dist/src/atom.js +22 -0
- package/dist/src/attribute.d.ts +74 -33
- package/dist/src/attribute.js +433 -0
- package/dist/src/attributes.d.ts +61 -55
- package/dist/src/attributes.js +371 -0
- package/dist/src/converter.d.ts +45 -71
- package/dist/src/converter.js +135 -0
- package/dist/src/converterFlags.d.ts +64 -39
- package/dist/src/converterFlags.js +235 -0
- package/dist/src/converterRule.d.ts +49 -27
- package/dist/src/converterRule.js +255 -0
- package/dist/src/extLink.d.ts +41 -38
- package/dist/src/extLink.js +154 -0
- package/dist/src/gallery.d.ts +59 -18
- package/dist/src/gallery.js +132 -0
- package/dist/src/heading.d.ts +60 -22
- package/dist/src/heading.js +135 -0
- package/dist/src/hidden.d.ts +20 -0
- package/dist/src/hidden.js +24 -0
- package/dist/src/html.d.ts +83 -29
- package/dist/src/html.js +242 -0
- package/dist/src/imageParameter.d.ts +59 -40
- package/dist/src/imageParameter.js +251 -0
- package/dist/src/imagemap.d.ts +65 -21
- package/dist/src/imagemap.js +164 -0
- package/dist/src/imagemapLink.d.ts +46 -14
- package/dist/src/imagemapLink.js +38 -0
- package/dist/src/index.d.ts +71 -105
- package/dist/src/index.js +826 -0
- package/dist/src/link/base.d.ts +71 -0
- package/dist/src/link/base.js +225 -0
- package/dist/src/link/category.d.ts +10 -11
- package/dist/src/link/category.js +26 -0
- package/dist/src/link/file.d.ts +61 -39
- package/dist/src/link/file.js +242 -0
- package/dist/src/link/galleryImage.d.ts +34 -12
- package/dist/src/link/galleryImage.js +98 -0
- package/dist/src/link/index.d.ts +25 -63
- package/dist/src/link/index.js +136 -0
- package/dist/src/magicLink.d.ts +22 -15
- package/dist/src/magicLink.js +126 -0
- package/dist/src/nested.d.ts +47 -0
- package/dist/src/nested.js +84 -0
- package/dist/src/nowiki/base.d.ts +39 -0
- package/dist/src/nowiki/base.js +29 -0
- package/dist/src/nowiki/comment.d.ts +31 -20
- package/dist/src/nowiki/comment.js +61 -0
- package/dist/src/nowiki/dd.d.ts +17 -11
- package/dist/src/nowiki/dd.js +50 -0
- package/dist/src/nowiki/doubleUnderscore.d.ts +28 -13
- package/dist/src/nowiki/doubleUnderscore.js +45 -0
- package/dist/src/nowiki/hr.d.ts +28 -10
- package/dist/src/nowiki/hr.js +33 -0
- package/dist/src/nowiki/index.d.ts +17 -23
- package/dist/src/nowiki/index.js +21 -0
- package/dist/src/nowiki/list.d.ts +15 -7
- package/dist/src/nowiki/list.js +11 -0
- package/dist/src/nowiki/noinclude.d.ts +20 -7
- package/dist/src/nowiki/noinclude.js +22 -0
- package/dist/src/nowiki/quote.d.ts +25 -10
- package/dist/src/nowiki/quote.js +55 -0
- package/dist/src/onlyinclude.d.ts +28 -12
- package/dist/src/onlyinclude.js +64 -0
- package/dist/src/paramTag/index.d.ts +40 -17
- package/dist/src/paramTag/index.js +76 -0
- package/dist/src/paramTag/inputbox.d.ts +8 -7
- package/dist/src/paramTag/inputbox.js +19 -0
- package/dist/src/parameter.d.ts +62 -41
- package/dist/src/parameter.js +201 -0
- package/dist/src/pre.d.ts +32 -0
- package/dist/src/pre.js +39 -0
- package/dist/src/syntax.d.ts +17 -14
- package/dist/src/syntax.js +65 -0
- package/dist/src/table/base.d.ts +55 -0
- package/dist/src/table/base.js +77 -0
- package/dist/src/table/index.d.ts +123 -156
- package/dist/src/table/index.js +811 -0
- package/dist/src/table/td.d.ts +90 -67
- package/dist/src/table/td.js +276 -0
- package/dist/src/table/tr.d.ts +30 -85
- package/dist/src/table/tr.js +48 -0
- package/dist/src/table/trBase.d.ts +72 -0
- package/dist/src/table/trBase.js +153 -0
- package/dist/src/tagPair/ext.d.ts +47 -11
- package/dist/src/tagPair/ext.js +127 -0
- package/dist/src/tagPair/include.d.ts +32 -13
- package/dist/src/tagPair/include.js +40 -0
- package/dist/src/tagPair/index.d.ts +44 -29
- package/dist/src/tagPair/index.js +111 -0
- package/dist/src/transclude.d.ts +88 -85
- package/dist/src/transclude.js +739 -0
- package/dist/util/base.js +26 -0
- package/dist/util/debug.js +52 -0
- package/dist/util/diff.js +69 -0
- package/dist/util/lint.js +38 -0
- package/dist/util/string.js +103 -0
- package/errors/README +1 -0
- package/i18n/zh-hans.json +1 -0
- package/i18n/zh-hant.json +1 -0
- package/package.json +11 -14
- package/printed/README +1 -0
- package/dist/mixin/attributeParent.d.ts +0 -9
- package/dist/mixin/fixedToken.d.ts +0 -8
- package/dist/mixin/hidden.d.ts +0 -8
- package/dist/mixin/singleLine.d.ts +0 -8
- package/dist/mixin/sol.d.ts +0 -8
- package/dist/parser/brackets.d.ts +0 -12
- package/dist/parser/commentAndExt.d.ts +0 -8
- package/dist/parser/converter.d.ts +0 -7
- package/dist/parser/externalLinks.d.ts +0 -7
- package/dist/parser/hrAndDoubleUnderscore.d.ts +0 -11
- package/dist/parser/html.d.ts +0 -7
- package/dist/parser/links.d.ts +0 -7
- package/dist/parser/list.d.ts +0 -7
- package/dist/parser/magicLinks.d.ts +0 -7
- package/dist/parser/quotes.d.ts +0 -7
- package/dist/parser/selector.d.ts +0 -12
- package/dist/parser/table.d.ts +0 -11
- package/dist/src/atom/hidden.d.ts +0 -5
- package/dist/src/atom/index.d.ts +0 -15
- package/dist/src/charinsert.d.ts +0 -32
- package/dist/src/hasNowiki/index.d.ts +0 -14
- package/dist/src/hasNowiki/pre.d.ts +0 -13
- package/dist/src/nested/choose.d.ts +0 -13
- package/dist/src/nested/combobox.d.ts +0 -13
- package/dist/src/nested/index.d.ts +0 -18
- package/dist/src/nested/references.d.ts +0 -13
- package/dist/tool/index.d.ts +0 -420
- package/dist/util/base.d.ts +0 -10
- package/dist/util/debug.d.ts +0 -20
- package/dist/util/diff.d.ts +0 -8
- package/dist/util/lint.d.ts +0 -28
- package/dist/util/string.d.ts +0 -55
- package/index.js +0 -333
- package/lib/element.js +0 -618
- package/lib/node.js +0 -730
- package/lib/ranges.js +0 -130
- package/lib/text.js +0 -265
- package/lib/title.js +0 -83
- package/mixin/attributeParent.js +0 -117
- package/mixin/fixedToken.js +0 -40
- package/mixin/hidden.js +0 -21
- package/mixin/singleLine.js +0 -31
- package/mixin/sol.js +0 -54
- package/parser/brackets.js +0 -128
- package/parser/commentAndExt.js +0 -62
- package/parser/converter.js +0 -46
- package/parser/externalLinks.js +0 -33
- package/parser/hrAndDoubleUnderscore.js +0 -49
- package/parser/html.js +0 -42
- package/parser/links.js +0 -94
- package/parser/list.js +0 -59
- package/parser/magicLinks.js +0 -41
- package/parser/quotes.js +0 -64
- package/parser/selector.js +0 -180
- package/parser/table.js +0 -114
- package/src/arg.js +0 -207
- package/src/atom/hidden.js +0 -13
- package/src/atom/index.js +0 -43
- package/src/attribute.js +0 -472
- package/src/attributes.js +0 -453
- package/src/charinsert.js +0 -97
- package/src/converter.js +0 -176
- package/src/converterFlags.js +0 -284
- package/src/converterRule.js +0 -256
- package/src/extLink.js +0 -180
- package/src/gallery.js +0 -149
- package/src/hasNowiki/index.js +0 -44
- package/src/hasNowiki/pre.js +0 -40
- package/src/heading.js +0 -134
- package/src/html.js +0 -254
- package/src/imageParameter.js +0 -303
- package/src/imagemap.js +0 -199
- package/src/imagemapLink.js +0 -41
- package/src/index.js +0 -938
- package/src/link/category.js +0 -44
- package/src/link/file.js +0 -287
- package/src/link/galleryImage.js +0 -120
- package/src/link/index.js +0 -388
- package/src/magicLink.js +0 -151
- package/src/nested/choose.js +0 -24
- package/src/nested/combobox.js +0 -23
- package/src/nested/index.js +0 -96
- package/src/nested/references.js +0 -23
- package/src/nowiki/comment.js +0 -71
- package/src/nowiki/dd.js +0 -59
- package/src/nowiki/doubleUnderscore.js +0 -56
- package/src/nowiki/hr.js +0 -41
- package/src/nowiki/index.js +0 -56
- package/src/nowiki/list.js +0 -16
- package/src/nowiki/noinclude.js +0 -28
- package/src/nowiki/quote.js +0 -69
- package/src/onlyinclude.js +0 -64
- package/src/paramTag/index.js +0 -89
- package/src/paramTag/inputbox.js +0 -35
- package/src/parameter.js +0 -239
- package/src/syntax.js +0 -91
- package/src/table/index.js +0 -985
- package/src/table/td.js +0 -343
- package/src/table/tr.js +0 -319
- package/src/tagPair/ext.js +0 -146
- package/src/tagPair/include.js +0 -50
- package/src/tagPair/index.js +0 -131
- package/src/transclude.js +0 -843
- package/tool/index.js +0 -1209
- package/typings/api.d.ts +0 -9
- package/typings/array.d.ts +0 -29
- package/typings/event.d.ts +0 -22
- package/typings/index.d.ts +0 -118
- package/typings/node.d.ts +0 -35
- package/typings/parser.d.ts +0 -12
- package/typings/table.d.ts +0 -10
- package/typings/token.d.ts +0 -31
- package/typings/tool.d.ts +0 -6
- package/util/base.js +0 -17
- package/util/debug.js +0 -73
- package/util/diff.js +0 -76
- package/util/lint.js +0 -57
- package/util/string.js +0 -126
package/src/imagemap.js
DELETED
|
@@ -1,199 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const {generateForSelf, generateForChild} = require('../util/lint'),
|
|
4
|
-
singleLine = require('../mixin/singleLine'),
|
|
5
|
-
Parser = require('..'),
|
|
6
|
-
Token = require('.'),
|
|
7
|
-
NoincludeToken = require('./nowiki/noinclude'),
|
|
8
|
-
GalleryImageToken = require('./link/galleryImage'),
|
|
9
|
-
ImagemapLinkToken = require('./imagemapLink');
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* `<imagemap>`
|
|
13
|
-
* @classdesc `{childNodes: ...NoincludeToken, GalleryImageToken, ...(NoincludeToken|ImagemapLinkToken|AstText)}`
|
|
14
|
-
*/
|
|
15
|
-
class ImagemapToken extends Token {
|
|
16
|
-
type = 'ext-inner';
|
|
17
|
-
name = 'imagemap';
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* 图片
|
|
21
|
-
* @returns {GalleryImageToken}
|
|
22
|
-
*/
|
|
23
|
-
get image() {
|
|
24
|
-
return this.childNodes.find(({type}) => type === 'imagemap-image');
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* 链接
|
|
29
|
-
* @returns {ImagemapLinkToken[]}
|
|
30
|
-
*/
|
|
31
|
-
get links() {
|
|
32
|
-
return this.childNodes.filter(({type}) => type === 'imagemap-link');
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* @param {string} inner 标签内部wikitext
|
|
37
|
-
* @param {import('../typings/token').accum} accum
|
|
38
|
-
* @throws `SyntaxError` 没有合法图片
|
|
39
|
-
*/
|
|
40
|
-
constructor(inner, config = Parser.getConfig(), accum = []) {
|
|
41
|
-
super(undefined, config, true, accum, {
|
|
42
|
-
GalleryImageToken: ':', ImagemapLinkToken: ':', SingleLineNoincludeToken: ':', AstText: ':',
|
|
43
|
-
});
|
|
44
|
-
if (!inner) {
|
|
45
|
-
return;
|
|
46
|
-
}
|
|
47
|
-
const lines = inner.split('\n'),
|
|
48
|
-
protocols = new Set(config.protocol.split('|')),
|
|
49
|
-
SingleLineNoincludeToken = singleLine(NoincludeToken),
|
|
50
|
-
fallback = /** @param {string} line 一行文本 */ line => {
|
|
51
|
-
super.insertAt(new SingleLineNoincludeToken(line, config, accum));
|
|
52
|
-
};
|
|
53
|
-
let first = true,
|
|
54
|
-
error = false;
|
|
55
|
-
for (const line of lines) {
|
|
56
|
-
const trimmed = line.trim();
|
|
57
|
-
if (error || !trimmed || trimmed[0] === '#') {
|
|
58
|
-
//
|
|
59
|
-
} else if (first) {
|
|
60
|
-
const [file, ...options] = line.split('|'),
|
|
61
|
-
title = this.normalizeTitle(file, 0, true);
|
|
62
|
-
if (title.valid && !title.interwiki && title.ns === 6) {
|
|
63
|
-
const token = new GalleryImageToken(
|
|
64
|
-
file, options.length > 0 ? options.join('|') : undefined, config, accum,
|
|
65
|
-
);
|
|
66
|
-
token.type = 'imagemap-image';
|
|
67
|
-
super.insertAt(token);
|
|
68
|
-
first = false;
|
|
69
|
-
continue;
|
|
70
|
-
} else {
|
|
71
|
-
Parser.error('<imagemap>标签内必须先包含一张合法图片!', line);
|
|
72
|
-
error = true;
|
|
73
|
-
}
|
|
74
|
-
} else if (line.trim().split(/[\t ]/u)[0] === 'desc') {
|
|
75
|
-
super.insertAt(line);
|
|
76
|
-
continue;
|
|
77
|
-
} else if (line.includes('[')) {
|
|
78
|
-
const i = line.indexOf('['),
|
|
79
|
-
substr = line.slice(i),
|
|
80
|
-
mtIn = /^\[{2}([^|]+)(?:\|([^\]]+))?\]{2}[\w\s]*$/u.exec(substr);
|
|
81
|
-
if (mtIn) {
|
|
82
|
-
const title = this.normalizeTitle(mtIn[1], 0, true, false, true);
|
|
83
|
-
if (title.valid) {
|
|
84
|
-
super.insertAt(new ImagemapLinkToken(
|
|
85
|
-
line.slice(0, i),
|
|
86
|
-
mtIn.slice(1),
|
|
87
|
-
substr.slice(substr.indexOf(']]') + 2),
|
|
88
|
-
config,
|
|
89
|
-
accum,
|
|
90
|
-
));
|
|
91
|
-
continue;
|
|
92
|
-
}
|
|
93
|
-
} else if (protocols.has(substr.slice(1, substr.indexOf(':') + 1))
|
|
94
|
-
|| protocols.has(substr.slice(1, substr.indexOf('//') + 2))
|
|
95
|
-
) {
|
|
96
|
-
const mtEx = /^\[([^\]\s]+)(?:(\s+)(\S[^\]]*)?)?\][\w\s]*$/u.exec(substr);
|
|
97
|
-
if (mtEx) {
|
|
98
|
-
super.insertAt(new ImagemapLinkToken(
|
|
99
|
-
line.slice(0, i),
|
|
100
|
-
mtEx.slice(1),
|
|
101
|
-
substr.slice(substr.indexOf(']') + 1),
|
|
102
|
-
config,
|
|
103
|
-
accum,
|
|
104
|
-
));
|
|
105
|
-
continue;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
fallback(line);
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* @override
|
|
115
|
-
* @param {string} selector
|
|
116
|
-
*/
|
|
117
|
-
toString(selector) {
|
|
118
|
-
return super.toString(selector, '\n');
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
/** @override */
|
|
122
|
-
text() {
|
|
123
|
-
return super.text('\n').replace(/\n{2,}/gu, '\n');
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
/** @override */
|
|
127
|
-
getGaps() {
|
|
128
|
-
return 1;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
/** @override */
|
|
132
|
-
print() {
|
|
133
|
-
return super.print({sep: '\n'});
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* @override
|
|
138
|
-
* @param {number} start 起始位置
|
|
139
|
-
*/
|
|
140
|
-
lint(start = this.getAbsoluteIndex()) {
|
|
141
|
-
const errors = super.lint(start),
|
|
142
|
-
rect = {start, ...this.getRootNode().posFromIndex(start)};
|
|
143
|
-
if (this.image) {
|
|
144
|
-
errors.push(
|
|
145
|
-
...this.childNodes.filter(child => {
|
|
146
|
-
const str = String(child).trim();
|
|
147
|
-
return child.type === 'noinclude' && str && str[0] !== '#';
|
|
148
|
-
}).map(child => generateForChild(child, rect, 'invalid link in <imagemap>')),
|
|
149
|
-
);
|
|
150
|
-
} else {
|
|
151
|
-
errors.push(generateForSelf(this, rect, '<imagemap> without an image'));
|
|
152
|
-
}
|
|
153
|
-
return errors;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
/**
|
|
157
|
-
* @override
|
|
158
|
-
* @template {string|Token} T
|
|
159
|
-
* @param {T} token 待插入的节点
|
|
160
|
-
* @param {number} i 插入位置
|
|
161
|
-
* @throws `Error` 当前缺少合法图片
|
|
162
|
-
* @throws `RangeError` 已有一张合法图片
|
|
163
|
-
*/
|
|
164
|
-
insertAt(token, i = 0) {
|
|
165
|
-
const {image} = this;
|
|
166
|
-
if (!image && (token.type === 'imagemap-link' || token.type === 'text')) {
|
|
167
|
-
throw new Error('当前缺少一张合法图片!');
|
|
168
|
-
} else if (image && token.type === 'imagemap-image') {
|
|
169
|
-
throw new RangeError('已有一张合法图片!');
|
|
170
|
-
}
|
|
171
|
-
return super.insertAt(token, i);
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
/**
|
|
175
|
-
* @override
|
|
176
|
-
* @param {number} i 移除位置
|
|
177
|
-
* @throws `Error` 禁止移除图片
|
|
178
|
-
*/
|
|
179
|
-
removeAt(i) {
|
|
180
|
-
const child = this.childNodes[i];
|
|
181
|
-
if (child.type === 'imagemap-image') {
|
|
182
|
-
throw new Error('禁止移除<imagemap>内的图片!');
|
|
183
|
-
}
|
|
184
|
-
return super.removeAt(i);
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
/** @override */
|
|
188
|
-
cloneNode() {
|
|
189
|
-
const cloned = this.cloneChildNodes();
|
|
190
|
-
return Parser.run(() => {
|
|
191
|
-
const token = new ImagemapToken(undefined, this.getAttribute('config'));
|
|
192
|
-
token.append(...cloned);
|
|
193
|
-
return token;
|
|
194
|
-
});
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
Parser.classes.ImagemapToken = __filename;
|
|
199
|
-
module.exports = ImagemapToken;
|
package/src/imagemapLink.js
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const Title = require('../lib/title'),
|
|
4
|
-
fixedToken = require('../mixin/fixedToken'),
|
|
5
|
-
singleLine = require('../mixin/singleLine'),
|
|
6
|
-
Parser = require('..'),
|
|
7
|
-
Token = require('.'),
|
|
8
|
-
NoincludeToken = require('./nowiki/noinclude'),
|
|
9
|
-
LinkToken = require('./link'),
|
|
10
|
-
ExtLinkToken = require('./extLink');
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* `<imagemap>`内的链接
|
|
14
|
-
* @classdesc `{childNodes: [AstText, LinkToken|ExtLinkToken, NoincludeToken]}`
|
|
15
|
-
*/
|
|
16
|
-
class ImagemapLinkToken extends fixedToken(singleLine(Token)) {
|
|
17
|
-
type = 'imagemap-link';
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* 内外链接
|
|
21
|
-
* @this {{childNodes: (LinkToken|ExtLinkToken)[]}}
|
|
22
|
-
*/
|
|
23
|
-
get link() {
|
|
24
|
-
return this.childNodes[1].link;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* @param {string} pre 链接前的文本
|
|
29
|
-
* @param {[string, string, string|Title]} linkStuff 内外链接
|
|
30
|
-
* @param {string} post 链接后的文本
|
|
31
|
-
* @param {import('../typings/token').accum} accum
|
|
32
|
-
*/
|
|
33
|
-
constructor(pre, linkStuff, post, config, accum) {
|
|
34
|
-
const SomeLinkToken = linkStuff.length === 2 ? LinkToken : ExtLinkToken;
|
|
35
|
-
super(undefined, config, true, accum);
|
|
36
|
-
this.append(pre, new SomeLinkToken(...linkStuff, config, accum), new NoincludeToken(post, config, accum));
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
Parser.classes.ImagemapLinkToken = __filename;
|
|
41
|
-
module.exports = ImagemapLinkToken;
|