html-to-markdown-wasm 2.6.1 → 2.6.2
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 +6 -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 +6 -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 +6 -7
- package/dist-web/html_to_markdown_wasm_bg.wasm +0 -0
- package/dist-web/package.json +1 -1
- package/package.json +2 -2
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Initialize panic hook for better error messages in the browser
|
|
5
|
+
*/
|
|
6
|
+
export function init(): void;
|
|
3
7
|
/**
|
|
4
8
|
* Convert HTML to Markdown while collecting inline images
|
|
5
9
|
*
|
|
@@ -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
|
*/
|
|
@@ -231,6 +231,12 @@ function getArrayJsValueFromWasm0(ptr, len) {
|
|
|
231
231
|
}
|
|
232
232
|
return result;
|
|
233
233
|
}
|
|
234
|
+
/**
|
|
235
|
+
* Initialize panic hook for better error messages in the browser
|
|
236
|
+
*/
|
|
237
|
+
export function init() {
|
|
238
|
+
wasm.init();
|
|
239
|
+
}
|
|
234
240
|
|
|
235
241
|
function _assertClass(instance, klass) {
|
|
236
242
|
if (!(instance instanceof klass)) {
|
|
@@ -335,13 +341,6 @@ export function convert(html, options) {
|
|
|
335
341
|
}
|
|
336
342
|
}
|
|
337
343
|
|
|
338
|
-
/**
|
|
339
|
-
* Initialize panic hook for better error messages in the browser
|
|
340
|
-
*/
|
|
341
|
-
export function init() {
|
|
342
|
-
wasm.init();
|
|
343
|
-
}
|
|
344
|
-
|
|
345
344
|
const WasmHtmlExtractionFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
346
345
|
? { register: () => {}, unregister: () => {} }
|
|
347
346
|
: new FinalizationRegistry(ptr => wasm.__wbg_wasmhtmlextraction_free(ptr >>> 0, 1));
|
|
Binary file
|
package/dist/package.json
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Initialize panic hook for better error messages in the browser
|
|
5
|
+
*/
|
|
6
|
+
export function init(): void;
|
|
3
7
|
/**
|
|
4
8
|
* Convert HTML to Markdown while collecting inline images
|
|
5
9
|
*
|
|
@@ -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
|
*/
|
|
@@ -221,6 +221,12 @@ function getArrayJsValueFromWasm0(ptr, len) {
|
|
|
221
221
|
}
|
|
222
222
|
return result;
|
|
223
223
|
}
|
|
224
|
+
/**
|
|
225
|
+
* Initialize panic hook for better error messages in the browser
|
|
226
|
+
*/
|
|
227
|
+
exports.init = function() {
|
|
228
|
+
wasm.init();
|
|
229
|
+
};
|
|
224
230
|
|
|
225
231
|
function _assertClass(instance, klass) {
|
|
226
232
|
if (!(instance instanceof klass)) {
|
|
@@ -325,13 +331,6 @@ exports.convert = function(html, options) {
|
|
|
325
331
|
}
|
|
326
332
|
};
|
|
327
333
|
|
|
328
|
-
/**
|
|
329
|
-
* Initialize panic hook for better error messages in the browser
|
|
330
|
-
*/
|
|
331
|
-
exports.init = function() {
|
|
332
|
-
wasm.init();
|
|
333
|
-
};
|
|
334
|
-
|
|
335
334
|
const WasmHtmlExtractionFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
336
335
|
? { register: () => {}, unregister: () => {} }
|
|
337
336
|
: new FinalizationRegistry(ptr => wasm.__wbg_wasmhtmlextraction_free(ptr >>> 0, 1));
|
|
Binary file
|
package/dist-node/package.json
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Initialize panic hook for better error messages in the browser
|
|
5
|
+
*/
|
|
6
|
+
export function init(): void;
|
|
3
7
|
/**
|
|
4
8
|
* Convert HTML to Markdown while collecting inline images
|
|
5
9
|
*
|
|
@@ -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
|
*/
|
|
@@ -227,6 +227,12 @@ function getArrayJsValueFromWasm0(ptr, len) {
|
|
|
227
227
|
}
|
|
228
228
|
return result;
|
|
229
229
|
}
|
|
230
|
+
/**
|
|
231
|
+
* Initialize panic hook for better error messages in the browser
|
|
232
|
+
*/
|
|
233
|
+
export function init() {
|
|
234
|
+
wasm.init();
|
|
235
|
+
}
|
|
230
236
|
|
|
231
237
|
function _assertClass(instance, klass) {
|
|
232
238
|
if (!(instance instanceof klass)) {
|
|
@@ -331,13 +337,6 @@ export function convert(html, options) {
|
|
|
331
337
|
}
|
|
332
338
|
}
|
|
333
339
|
|
|
334
|
-
/**
|
|
335
|
-
* Initialize panic hook for better error messages in the browser
|
|
336
|
-
*/
|
|
337
|
-
export function init() {
|
|
338
|
-
wasm.init();
|
|
339
|
-
}
|
|
340
|
-
|
|
341
340
|
const WasmHtmlExtractionFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
342
341
|
? { register: () => {}, unregister: () => {} }
|
|
343
342
|
: 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.2",
|
|
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": {
|