mdream 0.15.3 → 0.17.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/README.md +20 -10
- package/dist/_chunks/const.mjs +109 -268
- package/dist/_chunks/extraction.mjs +3 -5
- package/dist/_chunks/markdown-processor.mjs +195 -186
- package/dist/_chunks/plugin.d.mts +1 -2
- package/dist/_chunks/plugin.mjs +1 -2
- package/dist/_chunks/plugins.mjs +38 -215
- package/dist/_chunks/src.mjs +1 -4
- package/dist/_chunks/types.d.mts +6 -22
- package/dist/cli.mjs +6 -5
- package/dist/iife.js +8 -8
- package/dist/index.d.mts +4 -7
- package/dist/index.mjs +2 -3
- package/dist/llms-txt.mjs +468 -4
- package/dist/negotiate.d.mts +26 -0
- package/dist/negotiate.mjs +92 -0
- package/dist/plugins.d.mts +4 -15
- package/dist/plugins.mjs +3 -3
- package/dist/preset/minimal.d.mts +1 -2
- package/dist/preset/minimal.mjs +40 -4
- package/dist/splitter.d.mts +1 -2
- package/dist/splitter.mjs +26 -28
- package/package.json +10 -2
- package/dist/_chunks/llms-txt.mjs +0 -464
- package/dist/_chunks/minimal.mjs +0 -40
package/README.md
CHANGED
|
@@ -201,7 +201,6 @@ Mdream includes several built-in plugins that can be used individually or combin
|
|
|
201
201
|
- **[`frontmatterPlugin`](./src/plugins/frontmatter.ts)**: Generate YAML frontmatter from HTML head elements (title, meta tags)
|
|
202
202
|
- **[`isolateMainPlugin`](./src/plugins/isolate-main.ts)**: Isolate main content using `<main>` elements or header-to-footer boundaries
|
|
203
203
|
- **[`tailwindPlugin`](./src/plugins/tailwind.ts)**: Convert Tailwind CSS classes to Markdown formatting (bold, italic, etc.)
|
|
204
|
-
- **[`readabilityPlugin`](./src/plugins/readability.ts)**: Content scoring and extraction (experimental)
|
|
205
204
|
|
|
206
205
|
```ts
|
|
207
206
|
import { filterPlugin, frontmatterPlugin, isolateMainPlugin } from 'mdream/plugins'
|
|
@@ -215,6 +214,26 @@ const markdown = htmlToMarkdown(html, {
|
|
|
215
214
|
})
|
|
216
215
|
```
|
|
217
216
|
|
|
217
|
+
### Content Extraction with Readability
|
|
218
|
+
|
|
219
|
+
For advanced content extraction (article detection, boilerplate removal), use [@mozilla/readability](https://github.com/mozilla/readability) before mdream:
|
|
220
|
+
|
|
221
|
+
```ts
|
|
222
|
+
import { Readability } from '@mozilla/readability'
|
|
223
|
+
import { JSDOM } from 'jsdom'
|
|
224
|
+
import { htmlToMarkdown } from 'mdream'
|
|
225
|
+
|
|
226
|
+
const dom = new JSDOM(html, { url: 'https://example.com' })
|
|
227
|
+
const article = new Readability(dom.window.document).parse()
|
|
228
|
+
|
|
229
|
+
if (article) {
|
|
230
|
+
const markdown = htmlToMarkdown(article.content)
|
|
231
|
+
// article.title, article.excerpt, article.byline also available
|
|
232
|
+
}
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
This pipeline gives you battle-tested content extraction + fast markdown conversion.
|
|
236
|
+
|
|
218
237
|
### Plugin Hooks
|
|
219
238
|
|
|
220
239
|
- `beforeNodeProcess`: Called before any node processing, can skip nodes
|
|
@@ -526,12 +545,3 @@ Custom notes
|
|
|
526
545
|
|
|
527
546
|
Licensed under the [MIT license](https://github.com/harlan-zw/mdream/blob/main/LICENSE.md).
|
|
528
547
|
|
|
529
|
-
<!-- Badges -->
|
|
530
|
-
[npm-version-src]: https://img.shields.io/npm/v/mdream/latest.svg?style=flat&colorA=18181B&colorB=4C9BE0
|
|
531
|
-
[npm-version-href]: https://npmjs.com/package/mdream
|
|
532
|
-
|
|
533
|
-
[npm-downloads-src]: https://img.shields.io/npm/dm/mdream.svg?style=flat&colorA=18181B&colorB=4C9BE0
|
|
534
|
-
[npm-downloads-href]: https://npmjs.com/package/mdream
|
|
535
|
-
|
|
536
|
-
[license-src]: https://img.shields.io/github/license/harlan-zw/mdream.svg?style=flat&colorA=18181B&colorB=4C9BE0
|
|
537
|
-
[license-href]: https://github.com/harlan-zw/mdream/blob/main/LICENSE.md
|
package/dist/_chunks/const.mjs
CHANGED
|
@@ -1,151 +1,3 @@
|
|
|
1
|
-
//#region src/buffer-region.ts
|
|
2
|
-
/**
|
|
3
|
-
* Creates a new buffer region
|
|
4
|
-
* Returns null if node already has a region assigned
|
|
5
|
-
*/
|
|
6
|
-
function createBufferRegion(node, state, include) {
|
|
7
|
-
if (node.regionId) return null;
|
|
8
|
-
const id = state.regionToggles.size + 1;
|
|
9
|
-
node.regionId = id;
|
|
10
|
-
state.regionToggles.set(id, include);
|
|
11
|
-
state.regionContentBuffers.set(id, []);
|
|
12
|
-
return id;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Collects content for a node into appropriate buffer (optimized)
|
|
16
|
-
*/
|
|
17
|
-
function collectNodeContent(node, content, state) {
|
|
18
|
-
if (!content) return;
|
|
19
|
-
const regionId = node.regionId || 0;
|
|
20
|
-
const targetBuffer = state.regionContentBuffers.get(regionId);
|
|
21
|
-
if (targetBuffer) {
|
|
22
|
-
targetBuffer.push(content);
|
|
23
|
-
state.lastContentCache = content;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Assembles final content from buffer regions and clears them after use
|
|
28
|
-
* Ensures frontmatter (regionId -1) appears first, followed by other included regions
|
|
29
|
-
*/
|
|
30
|
-
function assembleBufferedContent(state) {
|
|
31
|
-
const fragments = [];
|
|
32
|
-
for (const [regionId, content] of Array.from(state.regionContentBuffers.entries())) if (state.regionToggles.get(regionId)) fragments.push(...content);
|
|
33
|
-
state.regionToggles.clear();
|
|
34
|
-
state.regionContentBuffers.clear();
|
|
35
|
-
return fragments.join("").trimStart();
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
//#endregion
|
|
39
|
-
//#region src/const.ts
|
|
40
|
-
const TAG_HTML = 0;
|
|
41
|
-
const TAG_HEAD = 1;
|
|
42
|
-
const TAG_DETAILS = 2;
|
|
43
|
-
const TAG_SUMMARY = 3;
|
|
44
|
-
const TAG_TITLE = 4;
|
|
45
|
-
const TAG_META = 5;
|
|
46
|
-
const TAG_BR = 6;
|
|
47
|
-
const TAG_H1 = 7;
|
|
48
|
-
const TAG_H2 = 8;
|
|
49
|
-
const TAG_H3 = 9;
|
|
50
|
-
const TAG_H4 = 10;
|
|
51
|
-
const TAG_H5 = 11;
|
|
52
|
-
const TAG_H6 = 12;
|
|
53
|
-
const TAG_HR = 13;
|
|
54
|
-
const TAG_STRONG = 14;
|
|
55
|
-
const TAG_B = 15;
|
|
56
|
-
const TAG_EM = 16;
|
|
57
|
-
const TAG_I = 17;
|
|
58
|
-
const TAG_DEL = 18;
|
|
59
|
-
const TAG_SUB = 19;
|
|
60
|
-
const TAG_SUP = 20;
|
|
61
|
-
const TAG_INS = 21;
|
|
62
|
-
const TAG_BLOCKQUOTE = 22;
|
|
63
|
-
const TAG_CODE = 23;
|
|
64
|
-
const TAG_UL = 24;
|
|
65
|
-
const TAG_LI = 25;
|
|
66
|
-
const TAG_A = 26;
|
|
67
|
-
const TAG_IMG = 27;
|
|
68
|
-
const TAG_TABLE = 28;
|
|
69
|
-
const TAG_THEAD = 29;
|
|
70
|
-
const TAG_TR = 30;
|
|
71
|
-
const TAG_TH = 31;
|
|
72
|
-
const TAG_TD = 32;
|
|
73
|
-
const TAG_OL = 33;
|
|
74
|
-
const TAG_PRE = 34;
|
|
75
|
-
const TAG_P = 35;
|
|
76
|
-
const TAG_DIV = 36;
|
|
77
|
-
const TAG_SPAN = 37;
|
|
78
|
-
const TAG_TBODY = 38;
|
|
79
|
-
const TAG_TFOOT = 39;
|
|
80
|
-
const TAG_FORM = 40;
|
|
81
|
-
const TAG_NAV = 41;
|
|
82
|
-
const TAG_LABEL = 42;
|
|
83
|
-
const TAG_BUTTON = 43;
|
|
84
|
-
const TAG_BODY = 44;
|
|
85
|
-
const TAG_CENTER = 45;
|
|
86
|
-
const TAG_KBD = 46;
|
|
87
|
-
const TAG_FOOTER = 47;
|
|
88
|
-
const TAG_PATH = 48;
|
|
89
|
-
const TAG_SVG = 49;
|
|
90
|
-
const TAG_ARTICLE = 50;
|
|
91
|
-
const TAG_SECTION = 51;
|
|
92
|
-
const TAG_SCRIPT = 52;
|
|
93
|
-
const TAG_STYLE = 53;
|
|
94
|
-
const TAG_LINK = 54;
|
|
95
|
-
const TAG_AREA = 55;
|
|
96
|
-
const TAG_BASE = 56;
|
|
97
|
-
const TAG_COL = 57;
|
|
98
|
-
const TAG_EMBED = 58;
|
|
99
|
-
const TAG_INPUT = 59;
|
|
100
|
-
const TAG_KEYGEN = 60;
|
|
101
|
-
const TAG_PARAM = 61;
|
|
102
|
-
const TAG_SOURCE = 62;
|
|
103
|
-
const TAG_TRACK = 63;
|
|
104
|
-
const TAG_WBR = 64;
|
|
105
|
-
const TAG_SELECT = 65;
|
|
106
|
-
const TAG_TEXTAREA = 66;
|
|
107
|
-
const TAG_OPTION = 67;
|
|
108
|
-
const TAG_FIELDSET = 68;
|
|
109
|
-
const TAG_LEGEND = 69;
|
|
110
|
-
const TAG_AUDIO = 70;
|
|
111
|
-
const TAG_VIDEO = 71;
|
|
112
|
-
const TAG_CANVAS = 72;
|
|
113
|
-
const TAG_IFRAME = 73;
|
|
114
|
-
const TAG_MAP = 74;
|
|
115
|
-
const TAG_DIALOG = 75;
|
|
116
|
-
const TAG_METER = 76;
|
|
117
|
-
const TAG_PROGRESS = 77;
|
|
118
|
-
const TAG_TEMPLATE = 78;
|
|
119
|
-
const TAG_ABBR = 79;
|
|
120
|
-
const TAG_MARK = 80;
|
|
121
|
-
const TAG_Q = 81;
|
|
122
|
-
const TAG_SAMP = 82;
|
|
123
|
-
const TAG_SMALL = 83;
|
|
124
|
-
const TAG_NOSCRIPT = 84;
|
|
125
|
-
const TAG_NOFRAMES = 85;
|
|
126
|
-
const TAG_XMP = 86;
|
|
127
|
-
const TAG_PLAINTEXT = 87;
|
|
128
|
-
const TAG_ASIDE = 88;
|
|
129
|
-
const TAG_U = 89;
|
|
130
|
-
const TAG_CITE = 90;
|
|
131
|
-
const TAG_DFN = 91;
|
|
132
|
-
const TAG_VAR = 92;
|
|
133
|
-
const TAG_TIME = 93;
|
|
134
|
-
const TAG_BDO = 94;
|
|
135
|
-
const TAG_RUBY = 95;
|
|
136
|
-
const TAG_RT = 96;
|
|
137
|
-
const TAG_RP = 97;
|
|
138
|
-
const TAG_DD = 98;
|
|
139
|
-
const TAG_DT = 99;
|
|
140
|
-
const TAG_ADDRESS = 100;
|
|
141
|
-
const TAG_DL = 101;
|
|
142
|
-
const TAG_FIGURE = 102;
|
|
143
|
-
const TAG_OBJECT = 103;
|
|
144
|
-
const TAG_MAIN = 104;
|
|
145
|
-
const TAG_HEADER = 105;
|
|
146
|
-
const TAG_FIGCAPTION = 106;
|
|
147
|
-
const TAG_CAPTION = 107;
|
|
148
|
-
const MAX_TAG_ID = 108;
|
|
149
1
|
const HTML_ENTITIES = {
|
|
150
2
|
"&": "&",
|
|
151
3
|
"<": "<",
|
|
@@ -155,131 +7,120 @@ const HTML_ENTITIES = {
|
|
|
155
7
|
"'": "'",
|
|
156
8
|
" ": " "
|
|
157
9
|
};
|
|
158
|
-
const ELEMENT_NODE = 1;
|
|
159
|
-
const TEXT_NODE = 2;
|
|
160
|
-
const NodeEventEnter = 0;
|
|
161
|
-
const NodeEventExit = 1;
|
|
162
10
|
const TagIdMap = {
|
|
163
|
-
html:
|
|
164
|
-
head:
|
|
165
|
-
details:
|
|
166
|
-
summary:
|
|
167
|
-
title:
|
|
168
|
-
meta:
|
|
169
|
-
br:
|
|
170
|
-
h1:
|
|
171
|
-
h2:
|
|
172
|
-
h3:
|
|
173
|
-
h4:
|
|
174
|
-
h5:
|
|
175
|
-
h6:
|
|
176
|
-
hr:
|
|
177
|
-
strong:
|
|
178
|
-
b:
|
|
179
|
-
em:
|
|
180
|
-
i:
|
|
181
|
-
del:
|
|
182
|
-
sub:
|
|
183
|
-
sup:
|
|
184
|
-
ins:
|
|
185
|
-
blockquote:
|
|
186
|
-
code:
|
|
187
|
-
ul:
|
|
188
|
-
li:
|
|
189
|
-
a:
|
|
190
|
-
img:
|
|
191
|
-
table:
|
|
192
|
-
thead:
|
|
193
|
-
tr:
|
|
194
|
-
th:
|
|
195
|
-
td:
|
|
196
|
-
ol:
|
|
197
|
-
pre:
|
|
198
|
-
p:
|
|
199
|
-
div:
|
|
200
|
-
span:
|
|
201
|
-
tbody:
|
|
202
|
-
tfoot:
|
|
203
|
-
form:
|
|
204
|
-
nav:
|
|
205
|
-
label:
|
|
206
|
-
button:
|
|
207
|
-
body:
|
|
208
|
-
center:
|
|
209
|
-
kbd:
|
|
210
|
-
footer:
|
|
211
|
-
path:
|
|
212
|
-
svg:
|
|
213
|
-
article:
|
|
214
|
-
section:
|
|
215
|
-
script:
|
|
216
|
-
style:
|
|
217
|
-
link:
|
|
218
|
-
area:
|
|
219
|
-
base:
|
|
220
|
-
col:
|
|
221
|
-
embed:
|
|
222
|
-
input:
|
|
223
|
-
keygen:
|
|
224
|
-
param:
|
|
225
|
-
source:
|
|
226
|
-
track:
|
|
227
|
-
wbr:
|
|
228
|
-
select:
|
|
229
|
-
textarea:
|
|
230
|
-
option:
|
|
231
|
-
fieldset:
|
|
232
|
-
legend:
|
|
233
|
-
audio:
|
|
234
|
-
video:
|
|
235
|
-
canvas:
|
|
236
|
-
iframe:
|
|
237
|
-
map:
|
|
238
|
-
dialog:
|
|
239
|
-
meter:
|
|
240
|
-
progress:
|
|
241
|
-
template:
|
|
242
|
-
abbr:
|
|
243
|
-
mark:
|
|
244
|
-
q:
|
|
245
|
-
samp:
|
|
246
|
-
small:
|
|
247
|
-
noscript:
|
|
248
|
-
noframes:
|
|
249
|
-
xmp:
|
|
250
|
-
plaintext:
|
|
251
|
-
aside:
|
|
252
|
-
u:
|
|
253
|
-
cite:
|
|
254
|
-
dfn:
|
|
255
|
-
var:
|
|
256
|
-
time:
|
|
257
|
-
bdo:
|
|
258
|
-
ruby:
|
|
259
|
-
rt:
|
|
260
|
-
rp:
|
|
261
|
-
dd:
|
|
262
|
-
dt:
|
|
263
|
-
dl:
|
|
264
|
-
address:
|
|
265
|
-
figure:
|
|
266
|
-
object:
|
|
267
|
-
main:
|
|
268
|
-
header:
|
|
269
|
-
figcaption:
|
|
270
|
-
caption:
|
|
11
|
+
html: 0,
|
|
12
|
+
head: 1,
|
|
13
|
+
details: 2,
|
|
14
|
+
summary: 3,
|
|
15
|
+
title: 4,
|
|
16
|
+
meta: 5,
|
|
17
|
+
br: 6,
|
|
18
|
+
h1: 7,
|
|
19
|
+
h2: 8,
|
|
20
|
+
h3: 9,
|
|
21
|
+
h4: 10,
|
|
22
|
+
h5: 11,
|
|
23
|
+
h6: 12,
|
|
24
|
+
hr: 13,
|
|
25
|
+
strong: 14,
|
|
26
|
+
b: 15,
|
|
27
|
+
em: 16,
|
|
28
|
+
i: 17,
|
|
29
|
+
del: 18,
|
|
30
|
+
sub: 19,
|
|
31
|
+
sup: 20,
|
|
32
|
+
ins: 21,
|
|
33
|
+
blockquote: 22,
|
|
34
|
+
code: 23,
|
|
35
|
+
ul: 24,
|
|
36
|
+
li: 25,
|
|
37
|
+
a: 26,
|
|
38
|
+
img: 27,
|
|
39
|
+
table: 28,
|
|
40
|
+
thead: 29,
|
|
41
|
+
tr: 30,
|
|
42
|
+
th: 31,
|
|
43
|
+
td: 32,
|
|
44
|
+
ol: 33,
|
|
45
|
+
pre: 34,
|
|
46
|
+
p: 35,
|
|
47
|
+
div: 36,
|
|
48
|
+
span: 37,
|
|
49
|
+
tbody: 38,
|
|
50
|
+
tfoot: 39,
|
|
51
|
+
form: 40,
|
|
52
|
+
nav: 41,
|
|
53
|
+
label: 42,
|
|
54
|
+
button: 43,
|
|
55
|
+
body: 44,
|
|
56
|
+
center: 45,
|
|
57
|
+
kbd: 46,
|
|
58
|
+
footer: 47,
|
|
59
|
+
path: 48,
|
|
60
|
+
svg: 49,
|
|
61
|
+
article: 50,
|
|
62
|
+
section: 51,
|
|
63
|
+
script: 52,
|
|
64
|
+
style: 53,
|
|
65
|
+
link: 54,
|
|
66
|
+
area: 55,
|
|
67
|
+
base: 56,
|
|
68
|
+
col: 57,
|
|
69
|
+
embed: 58,
|
|
70
|
+
input: 59,
|
|
71
|
+
keygen: 60,
|
|
72
|
+
param: 61,
|
|
73
|
+
source: 62,
|
|
74
|
+
track: 63,
|
|
75
|
+
wbr: 64,
|
|
76
|
+
select: 65,
|
|
77
|
+
textarea: 66,
|
|
78
|
+
option: 67,
|
|
79
|
+
fieldset: 68,
|
|
80
|
+
legend: 69,
|
|
81
|
+
audio: 70,
|
|
82
|
+
video: 71,
|
|
83
|
+
canvas: 72,
|
|
84
|
+
iframe: 73,
|
|
85
|
+
map: 74,
|
|
86
|
+
dialog: 75,
|
|
87
|
+
meter: 76,
|
|
88
|
+
progress: 77,
|
|
89
|
+
template: 78,
|
|
90
|
+
abbr: 79,
|
|
91
|
+
mark: 80,
|
|
92
|
+
q: 81,
|
|
93
|
+
samp: 82,
|
|
94
|
+
small: 83,
|
|
95
|
+
noscript: 84,
|
|
96
|
+
noframes: 85,
|
|
97
|
+
xmp: 86,
|
|
98
|
+
plaintext: 87,
|
|
99
|
+
aside: 88,
|
|
100
|
+
u: 89,
|
|
101
|
+
cite: 90,
|
|
102
|
+
dfn: 91,
|
|
103
|
+
var: 92,
|
|
104
|
+
time: 93,
|
|
105
|
+
bdo: 94,
|
|
106
|
+
ruby: 95,
|
|
107
|
+
rt: 96,
|
|
108
|
+
rp: 97,
|
|
109
|
+
dd: 98,
|
|
110
|
+
dt: 99,
|
|
111
|
+
dl: 101,
|
|
112
|
+
address: 100,
|
|
113
|
+
figure: 102,
|
|
114
|
+
object: 103,
|
|
115
|
+
main: 104,
|
|
116
|
+
header: 105,
|
|
117
|
+
figcaption: 106,
|
|
118
|
+
caption: 107
|
|
271
119
|
};
|
|
272
|
-
const MARKDOWN_STRONG = "**";
|
|
273
|
-
const MARKDOWN_EMPHASIS = "_";
|
|
274
|
-
const MARKDOWN_STRIKETHROUGH = "~~";
|
|
275
|
-
const MARKDOWN_CODE_BLOCK = "```";
|
|
276
|
-
const MARKDOWN_INLINE_CODE = "`";
|
|
277
|
-
const MARKDOWN_HORIZONTAL_RULE = "---";
|
|
278
120
|
const NO_SPACING = [0, 0];
|
|
279
121
|
const DEFAULT_BLOCK_SPACING = [2, 2];
|
|
280
122
|
const BLOCKQUOTE_SPACING = [1, 1];
|
|
281
123
|
const LIST_ITEM_SPACING = [1, 0];
|
|
282
124
|
const TABLE_ROW_SPACING = [0, 1];
|
|
283
|
-
|
|
284
125
|
//#endregion
|
|
285
|
-
export {
|
|
126
|
+
export { NO_SPACING as a, LIST_ITEM_SPACING as i, DEFAULT_BLOCK_SPACING as n, TABLE_ROW_SPACING as o, HTML_ENTITIES as r, TagIdMap as s, BLOCKQUOTE_SPACING as t };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { t as createPlugin } from "./plugin.mjs";
|
|
2
|
-
|
|
3
2
|
//#region src/libs/query-selector.ts
|
|
4
3
|
/**
|
|
5
4
|
* Creates a tag selector matcher (e.g., 'div', 'p', 'h1')
|
|
@@ -33,11 +32,12 @@ function createClassSelector(selector) {
|
|
|
33
32
|
toString: () => `.${className}`
|
|
34
33
|
};
|
|
35
34
|
}
|
|
35
|
+
const ATTR_SELECTOR_RE = /\[([^\]=~|^$*]+)(?:([=~|^$*]+)["']?([^"'\]]+)["']?)?\]/;
|
|
36
36
|
/**
|
|
37
37
|
* Creates an attribute selector matcher (e.g., '[data-id]', '[href="https://example.com"]')
|
|
38
38
|
*/
|
|
39
39
|
function createAttributeSelector(selector) {
|
|
40
|
-
const match = selector.match(
|
|
40
|
+
const match = selector.match(ATTR_SELECTOR_RE);
|
|
41
41
|
const attrName = match ? match[1] : selector.slice(1, -1);
|
|
42
42
|
const operator = match?.[2];
|
|
43
43
|
const attrValue = match?.[3];
|
|
@@ -100,7 +100,6 @@ function parseSelector(selector) {
|
|
|
100
100
|
if (selectorParts.length === 1) return selectorParts[0];
|
|
101
101
|
return createCompoundSelector(selectorParts);
|
|
102
102
|
}
|
|
103
|
-
|
|
104
103
|
//#endregion
|
|
105
104
|
//#region src/plugins/extraction.ts
|
|
106
105
|
function extractionPlugin(selectors) {
|
|
@@ -139,6 +138,5 @@ function extractionPlugin(selectors) {
|
|
|
139
138
|
}
|
|
140
139
|
});
|
|
141
140
|
}
|
|
142
|
-
|
|
143
141
|
//#endregion
|
|
144
|
-
export { parseSelector as n, extractionPlugin as t };
|
|
142
|
+
export { parseSelector as n, extractionPlugin as t };
|