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.
@@ -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
@@ -4,7 +4,7 @@
4
4
  "collaborators": [
5
5
  "Na'aman Hirschfeld <nhirschfeld@gmail.com>"
6
6
  ],
7
- "version": "2.6.1",
7
+ "version": "2.6.3",
8
8
  "license": "MIT",
9
9
  "repository": {
10
10
  "type": "git",
@@ -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));
@@ -3,7 +3,7 @@
3
3
  "collaborators": [
4
4
  "Na'aman Hirschfeld <nhirschfeld@gmail.com>"
5
5
  ],
6
- "version": "2.6.1",
6
+ "version": "2.6.3",
7
7
  "license": "MIT",
8
8
  "repository": {
9
9
  "type": "git",
@@ -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));
@@ -4,7 +4,7 @@
4
4
  "collaborators": [
5
5
  "Na'aman Hirschfeld <nhirschfeld@gmail.com>"
6
6
  ],
7
- "version": "2.6.1",
7
+ "version": "2.6.3",
8
8
  "license": "MIT",
9
9
  "repository": {
10
10
  "type": "git",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "html-to-markdown-wasm",
3
- "version": "2.6.1",
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.7",
60
+ "vitest": "^4.0.8",
61
61
  "wasm-pack": "^0.13.1"
62
62
  },
63
63
  "publishConfig": {