html-to-markdown-wasm 2.6.1 → 2.6.3
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/html_to_markdown_wasm.d.ts +4 -4
- package/dist/html_to_markdown_wasm_bg.js +7 -7
- package/dist/html_to_markdown_wasm_bg.wasm +0 -0
- package/dist/package.json +1 -1
- package/dist-node/html_to_markdown_wasm.d.ts +4 -4
- package/dist-node/html_to_markdown_wasm.js +7 -7
- package/dist-node/html_to_markdown_wasm_bg.wasm +0 -0
- package/dist-node/package.json +1 -1
- package/dist-web/html_to_markdown_wasm.d.ts +4 -4
- package/dist-web/html_to_markdown_wasm.js +7 -7
- package/dist-web/html_to_markdown_wasm_bg.wasm +0 -0
- package/dist-web/package.json +1 -1
- package/package.json +2 -2
|
@@ -24,6 +24,10 @@
|
|
|
24
24
|
* ```
|
|
25
25
|
*/
|
|
26
26
|
export function convertWithInlineImages(html: string, options: any, image_config?: WasmInlineImageConfig | null): WasmHtmlExtraction;
|
|
27
|
+
/**
|
|
28
|
+
* Initialize panic hook for better error messages in the browser
|
|
29
|
+
*/
|
|
30
|
+
export function init(): void;
|
|
27
31
|
/**
|
|
28
32
|
* Convert HTML to Markdown
|
|
29
33
|
*
|
|
@@ -43,10 +47,6 @@ export function convertWithInlineImages(html: string, options: any, image_config
|
|
|
43
47
|
* ```
|
|
44
48
|
*/
|
|
45
49
|
export function convert(html: string, options: any): string;
|
|
46
|
-
/**
|
|
47
|
-
* Initialize panic hook for better error messages in the browser
|
|
48
|
-
*/
|
|
49
|
-
export function init(): void;
|
|
50
50
|
/**
|
|
51
51
|
* Result of HTML extraction with inline images
|
|
52
52
|
*/
|
|
@@ -287,6 +287,13 @@ export function convertWithInlineImages(html, options, image_config) {
|
|
|
287
287
|
}
|
|
288
288
|
}
|
|
289
289
|
|
|
290
|
+
/**
|
|
291
|
+
* Initialize panic hook for better error messages in the browser
|
|
292
|
+
*/
|
|
293
|
+
export function init() {
|
|
294
|
+
wasm.init();
|
|
295
|
+
}
|
|
296
|
+
|
|
290
297
|
/**
|
|
291
298
|
* Convert HTML to Markdown
|
|
292
299
|
*
|
|
@@ -335,13 +342,6 @@ export function convert(html, options) {
|
|
|
335
342
|
}
|
|
336
343
|
}
|
|
337
344
|
|
|
338
|
-
/**
|
|
339
|
-
* Initialize panic hook for better error messages in the browser
|
|
340
|
-
*/
|
|
341
|
-
export function init() {
|
|
342
|
-
wasm.init();
|
|
343
|
-
}
|
|
344
|
-
|
|
345
345
|
const WasmHtmlExtractionFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
346
346
|
? { register: () => {}, unregister: () => {} }
|
|
347
347
|
: new FinalizationRegistry(ptr => wasm.__wbg_wasmhtmlextraction_free(ptr >>> 0, 1));
|
|
Binary file
|
package/dist/package.json
CHANGED
|
@@ -24,6 +24,10 @@
|
|
|
24
24
|
* ```
|
|
25
25
|
*/
|
|
26
26
|
export function convertWithInlineImages(html: string, options: any, image_config?: WasmInlineImageConfig | null): WasmHtmlExtraction;
|
|
27
|
+
/**
|
|
28
|
+
* Initialize panic hook for better error messages in the browser
|
|
29
|
+
*/
|
|
30
|
+
export function init(): void;
|
|
27
31
|
/**
|
|
28
32
|
* Convert HTML to Markdown
|
|
29
33
|
*
|
|
@@ -43,10 +47,6 @@ export function convertWithInlineImages(html: string, options: any, image_config
|
|
|
43
47
|
* ```
|
|
44
48
|
*/
|
|
45
49
|
export function convert(html: string, options: any): string;
|
|
46
|
-
/**
|
|
47
|
-
* Initialize panic hook for better error messages in the browser
|
|
48
|
-
*/
|
|
49
|
-
export function init(): void;
|
|
50
50
|
/**
|
|
51
51
|
* Result of HTML extraction with inline images
|
|
52
52
|
*/
|
|
@@ -277,6 +277,13 @@ exports.convertWithInlineImages = function(html, options, image_config) {
|
|
|
277
277
|
}
|
|
278
278
|
};
|
|
279
279
|
|
|
280
|
+
/**
|
|
281
|
+
* Initialize panic hook for better error messages in the browser
|
|
282
|
+
*/
|
|
283
|
+
exports.init = function() {
|
|
284
|
+
wasm.init();
|
|
285
|
+
};
|
|
286
|
+
|
|
280
287
|
/**
|
|
281
288
|
* Convert HTML to Markdown
|
|
282
289
|
*
|
|
@@ -325,13 +332,6 @@ exports.convert = function(html, options) {
|
|
|
325
332
|
}
|
|
326
333
|
};
|
|
327
334
|
|
|
328
|
-
/**
|
|
329
|
-
* Initialize panic hook for better error messages in the browser
|
|
330
|
-
*/
|
|
331
|
-
exports.init = function() {
|
|
332
|
-
wasm.init();
|
|
333
|
-
};
|
|
334
|
-
|
|
335
335
|
const WasmHtmlExtractionFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
336
336
|
? { register: () => {}, unregister: () => {} }
|
|
337
337
|
: new FinalizationRegistry(ptr => wasm.__wbg_wasmhtmlextraction_free(ptr >>> 0, 1));
|
|
Binary file
|
package/dist-node/package.json
CHANGED
|
@@ -24,6 +24,10 @@
|
|
|
24
24
|
* ```
|
|
25
25
|
*/
|
|
26
26
|
export function convertWithInlineImages(html: string, options: any, image_config?: WasmInlineImageConfig | null): WasmHtmlExtraction;
|
|
27
|
+
/**
|
|
28
|
+
* Initialize panic hook for better error messages in the browser
|
|
29
|
+
*/
|
|
30
|
+
export function init(): void;
|
|
27
31
|
/**
|
|
28
32
|
* Convert HTML to Markdown
|
|
29
33
|
*
|
|
@@ -43,10 +47,6 @@ export function convertWithInlineImages(html: string, options: any, image_config
|
|
|
43
47
|
* ```
|
|
44
48
|
*/
|
|
45
49
|
export function convert(html: string, options: any): string;
|
|
46
|
-
/**
|
|
47
|
-
* Initialize panic hook for better error messages in the browser
|
|
48
|
-
*/
|
|
49
|
-
export function init(): void;
|
|
50
50
|
/**
|
|
51
51
|
* Result of HTML extraction with inline images
|
|
52
52
|
*/
|
|
@@ -283,6 +283,13 @@ export function convertWithInlineImages(html, options, image_config) {
|
|
|
283
283
|
}
|
|
284
284
|
}
|
|
285
285
|
|
|
286
|
+
/**
|
|
287
|
+
* Initialize panic hook for better error messages in the browser
|
|
288
|
+
*/
|
|
289
|
+
export function init() {
|
|
290
|
+
wasm.init();
|
|
291
|
+
}
|
|
292
|
+
|
|
286
293
|
/**
|
|
287
294
|
* Convert HTML to Markdown
|
|
288
295
|
*
|
|
@@ -331,13 +338,6 @@ export function convert(html, options) {
|
|
|
331
338
|
}
|
|
332
339
|
}
|
|
333
340
|
|
|
334
|
-
/**
|
|
335
|
-
* Initialize panic hook for better error messages in the browser
|
|
336
|
-
*/
|
|
337
|
-
export function init() {
|
|
338
|
-
wasm.init();
|
|
339
|
-
}
|
|
340
|
-
|
|
341
341
|
const WasmHtmlExtractionFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
342
342
|
? { register: () => {}, unregister: () => {} }
|
|
343
343
|
: new FinalizationRegistry(ptr => wasm.__wbg_wasmhtmlextraction_free(ptr >>> 0, 1));
|
|
Binary file
|
package/dist-web/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "html-to-markdown-wasm",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.3",
|
|
4
4
|
"description": "High-performance HTML to Markdown converter - WebAssembly bindings",
|
|
5
5
|
"main": "dist/html_to_markdown_wasm.js",
|
|
6
6
|
"types": "dist/html_to_markdown_wasm.d.ts",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"@types/node": "^24.10.0",
|
|
58
58
|
"tinybench": "^5.1.0",
|
|
59
59
|
"tsx": "^4.20.6",
|
|
60
|
-
"vitest": "^4.0.
|
|
60
|
+
"vitest": "^4.0.8",
|
|
61
61
|
"wasm-pack": "^0.13.1"
|
|
62
62
|
},
|
|
63
63
|
"publishConfig": {
|