@kreuzberg/html-to-markdown-wasm 3.4.0-rc.2 → 3.4.0-rc.21
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_bg.js +71 -90
- package/dist/html_to_markdown_wasm_bg.wasm +0 -0
- package/dist/package.json +1 -1
- package/dist-node/html_to_markdown_wasm.js +73 -91
- 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.js +73 -91
- package/dist-web/html_to_markdown_wasm_bg.wasm +0 -0
- package/dist-web/package.json +1 -1
- package/package.json +1 -1
|
@@ -53,7 +53,6 @@ export const WasmCodeBlockStyle = Object.freeze({
|
|
|
53
53
|
*/
|
|
54
54
|
export class WasmConversionOptions {
|
|
55
55
|
static __wrap(ptr) {
|
|
56
|
-
ptr = ptr >>> 0;
|
|
57
56
|
const obj = Object.create(WasmConversionOptions.prototype);
|
|
58
57
|
obj.__wbg_ptr = ptr;
|
|
59
58
|
WasmConversionOptionsFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -348,7 +347,7 @@ export class WasmConversionOptions {
|
|
|
348
347
|
*/
|
|
349
348
|
get maxDepth() {
|
|
350
349
|
const ret = wasm.wasmconversionoptions_maxDepth(this.__wbg_ptr);
|
|
351
|
-
return ret ===
|
|
350
|
+
return ret === Number.MAX_SAFE_INTEGER ? undefined : ret;
|
|
352
351
|
}
|
|
353
352
|
/**
|
|
354
353
|
* @returns {bigint}
|
|
@@ -425,8 +424,8 @@ export class WasmConversionOptions {
|
|
|
425
424
|
var len9 = WASM_VECTOR_LEN;
|
|
426
425
|
var ptr10 = isLikeNone(exclude_selectors) ? 0 : passArrayJsValueToWasm0(exclude_selectors, wasm.__wbindgen_export);
|
|
427
426
|
var len10 = WASM_VECTOR_LEN;
|
|
428
|
-
const ret = wasm.wasmconversionoptions_new(isLikeNone(heading_style) ? 3 : heading_style, isLikeNone(list_indent_type) ? 2 : list_indent_type, isLikeNone(list_indent_width) ?
|
|
429
|
-
this.__wbg_ptr = ret
|
|
427
|
+
const ret = wasm.wasmconversionoptions_new(isLikeNone(heading_style) ? 3 : heading_style, isLikeNone(list_indent_type) ? 2 : list_indent_type, isLikeNone(list_indent_width) ? Number.MAX_SAFE_INTEGER : (list_indent_width) >>> 0, ptr0, len0, ptr1, len1, isLikeNone(escape_asterisks) ? 0xFFFFFF : escape_asterisks ? 1 : 0, isLikeNone(escape_underscores) ? 0xFFFFFF : escape_underscores ? 1 : 0, isLikeNone(escape_misc) ? 0xFFFFFF : escape_misc ? 1 : 0, isLikeNone(escape_ascii) ? 0xFFFFFF : escape_ascii ? 1 : 0, ptr2, len2, isLikeNone(autolinks) ? 0xFFFFFF : autolinks ? 1 : 0, isLikeNone(default_title) ? 0xFFFFFF : default_title ? 1 : 0, isLikeNone(br_in_tables) ? 0xFFFFFF : br_in_tables ? 1 : 0, isLikeNone(highlight_style) ? 4 : highlight_style, isLikeNone(extract_metadata) ? 0xFFFFFF : extract_metadata ? 1 : 0, isLikeNone(whitespace_mode) ? 2 : whitespace_mode, isLikeNone(strip_newlines) ? 0xFFFFFF : strip_newlines ? 1 : 0, isLikeNone(wrap) ? 0xFFFFFF : wrap ? 1 : 0, isLikeNone(wrap_width) ? Number.MAX_SAFE_INTEGER : (wrap_width) >>> 0, isLikeNone(convert_as_inline) ? 0xFFFFFF : convert_as_inline ? 1 : 0, ptr3, len3, ptr4, len4, isLikeNone(newline_style) ? 2 : newline_style, isLikeNone(code_block_style) ? 3 : code_block_style, ptr5, len5, ptr6, ptr7, len7, isLikeNone(debug) ? 0xFFFFFF : debug ? 1 : 0, ptr8, len8, ptr9, len9, isLikeNone(skip_images) ? 0xFFFFFF : skip_images ? 1 : 0, isLikeNone(link_style) ? 2 : link_style, isLikeNone(output_format) ? 3 : output_format, isLikeNone(include_document_structure) ? 0xFFFFFF : include_document_structure ? 1 : 0, isLikeNone(extract_images) ? 0xFFFFFF : extract_images ? 1 : 0, !isLikeNone(max_image_size), isLikeNone(max_image_size) ? BigInt(0) : max_image_size, isLikeNone(capture_svg) ? 0xFFFFFF : capture_svg ? 1 : 0, isLikeNone(infer_dimensions) ? 0xFFFFFF : infer_dimensions ? 1 : 0, ptr10, len10, isLikeNone(max_depth) ? Number.MAX_SAFE_INTEGER : (max_depth) >>> 0);
|
|
428
|
+
this.__wbg_ptr = ret;
|
|
430
429
|
WasmConversionOptionsFinalization.register(this, this.__wbg_ptr, this);
|
|
431
430
|
return this;
|
|
432
431
|
}
|
|
@@ -631,7 +630,7 @@ export class WasmConversionOptions {
|
|
|
631
630
|
* @param {number | null} [value]
|
|
632
631
|
*/
|
|
633
632
|
set maxDepth(value) {
|
|
634
|
-
wasm.wasmconversionoptions_set_maxDepth(this.__wbg_ptr, isLikeNone(value) ?
|
|
633
|
+
wasm.wasmconversionoptions_set_maxDepth(this.__wbg_ptr, isLikeNone(value) ? Number.MAX_SAFE_INTEGER : (value) >>> 0);
|
|
635
634
|
}
|
|
636
635
|
/**
|
|
637
636
|
* @param {bigint} value
|
|
@@ -847,7 +846,6 @@ if (Symbol.dispose) WasmConversionOptions.prototype[Symbol.dispose] = WasmConver
|
|
|
847
846
|
*/
|
|
848
847
|
export class WasmConversionOptionsBuilder {
|
|
849
848
|
static __wrap(ptr) {
|
|
850
|
-
ptr = ptr >>> 0;
|
|
851
849
|
const obj = Object.create(WasmConversionOptionsBuilder.prototype);
|
|
852
850
|
obj.__wbg_ptr = ptr;
|
|
853
851
|
WasmConversionOptionsBuilderFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -1179,14 +1177,14 @@ export class WasmConversionOptionsUpdate {
|
|
|
1179
1177
|
*/
|
|
1180
1178
|
get listIndentWidth() {
|
|
1181
1179
|
const ret = wasm.wasmconversionoptionsupdate_listIndentWidth(this.__wbg_ptr);
|
|
1182
|
-
return ret ===
|
|
1180
|
+
return ret === Number.MAX_SAFE_INTEGER ? undefined : ret;
|
|
1183
1181
|
}
|
|
1184
1182
|
/**
|
|
1185
1183
|
* @returns {number | undefined}
|
|
1186
1184
|
*/
|
|
1187
1185
|
get maxDepth() {
|
|
1188
1186
|
const ret = wasm.wasmconversionoptionsupdate_maxDepth(this.__wbg_ptr);
|
|
1189
|
-
return ret ===
|
|
1187
|
+
return ret === Number.MAX_SAFE_INTEGER ? undefined : ret;
|
|
1190
1188
|
}
|
|
1191
1189
|
/**
|
|
1192
1190
|
* @returns {bigint | undefined}
|
|
@@ -1270,8 +1268,8 @@ export class WasmConversionOptionsUpdate {
|
|
|
1270
1268
|
var len9 = WASM_VECTOR_LEN;
|
|
1271
1269
|
var ptr10 = isLikeNone(exclude_selectors) ? 0 : passArrayJsValueToWasm0(exclude_selectors, wasm.__wbindgen_export);
|
|
1272
1270
|
var len10 = WASM_VECTOR_LEN;
|
|
1273
|
-
const ret = wasm.wasmconversionoptionsupdate_new(isLikeNone(heading_style) ? 3 : heading_style, isLikeNone(list_indent_type) ? 2 : list_indent_type, isLikeNone(list_indent_width) ?
|
|
1274
|
-
this.__wbg_ptr = ret
|
|
1271
|
+
const ret = wasm.wasmconversionoptionsupdate_new(isLikeNone(heading_style) ? 3 : heading_style, isLikeNone(list_indent_type) ? 2 : list_indent_type, isLikeNone(list_indent_width) ? Number.MAX_SAFE_INTEGER : (list_indent_width) >>> 0, ptr0, len0, ptr1, len1, isLikeNone(escape_asterisks) ? 0xFFFFFF : escape_asterisks ? 1 : 0, isLikeNone(escape_underscores) ? 0xFFFFFF : escape_underscores ? 1 : 0, isLikeNone(escape_misc) ? 0xFFFFFF : escape_misc ? 1 : 0, isLikeNone(escape_ascii) ? 0xFFFFFF : escape_ascii ? 1 : 0, ptr2, len2, isLikeNone(autolinks) ? 0xFFFFFF : autolinks ? 1 : 0, isLikeNone(default_title) ? 0xFFFFFF : default_title ? 1 : 0, isLikeNone(br_in_tables) ? 0xFFFFFF : br_in_tables ? 1 : 0, isLikeNone(highlight_style) ? 4 : highlight_style, isLikeNone(extract_metadata) ? 0xFFFFFF : extract_metadata ? 1 : 0, isLikeNone(whitespace_mode) ? 2 : whitespace_mode, isLikeNone(strip_newlines) ? 0xFFFFFF : strip_newlines ? 1 : 0, isLikeNone(wrap) ? 0xFFFFFF : wrap ? 1 : 0, isLikeNone(wrap_width) ? Number.MAX_SAFE_INTEGER : (wrap_width) >>> 0, isLikeNone(convert_as_inline) ? 0xFFFFFF : convert_as_inline ? 1 : 0, ptr3, len3, ptr4, len4, isLikeNone(newline_style) ? 2 : newline_style, isLikeNone(code_block_style) ? 3 : code_block_style, ptr5, len5, ptr6, ptr7, len7, isLikeNone(debug) ? 0xFFFFFF : debug ? 1 : 0, ptr8, len8, ptr9, len9, isLikeNone(skip_images) ? 0xFFFFFF : skip_images ? 1 : 0, isLikeNone(link_style) ? 2 : link_style, isLikeNone(output_format) ? 3 : output_format, isLikeNone(include_document_structure) ? 0xFFFFFF : include_document_structure ? 1 : 0, isLikeNone(extract_images) ? 0xFFFFFF : extract_images ? 1 : 0, !isLikeNone(max_image_size), isLikeNone(max_image_size) ? BigInt(0) : max_image_size, isLikeNone(capture_svg) ? 0xFFFFFF : capture_svg ? 1 : 0, isLikeNone(infer_dimensions) ? 0xFFFFFF : infer_dimensions ? 1 : 0, isLikeNone(max_depth) ? Number.MAX_SAFE_INTEGER : (max_depth) >>> 0, ptr10, len10);
|
|
1272
|
+
this.__wbg_ptr = ret;
|
|
1275
1273
|
WasmConversionOptionsUpdateFinalization.register(this, this.__wbg_ptr, this);
|
|
1276
1274
|
return this;
|
|
1277
1275
|
}
|
|
@@ -1473,13 +1471,13 @@ export class WasmConversionOptionsUpdate {
|
|
|
1473
1471
|
* @param {number | null} [value]
|
|
1474
1472
|
*/
|
|
1475
1473
|
set listIndentWidth(value) {
|
|
1476
|
-
wasm.wasmconversionoptionsupdate_set_listIndentWidth(this.__wbg_ptr, isLikeNone(value) ?
|
|
1474
|
+
wasm.wasmconversionoptionsupdate_set_listIndentWidth(this.__wbg_ptr, isLikeNone(value) ? Number.MAX_SAFE_INTEGER : (value) >>> 0);
|
|
1477
1475
|
}
|
|
1478
1476
|
/**
|
|
1479
1477
|
* @param {number | null} [value]
|
|
1480
1478
|
*/
|
|
1481
1479
|
set maxDepth(value) {
|
|
1482
|
-
wasm.wasmconversionoptionsupdate_set_maxDepth(this.__wbg_ptr, isLikeNone(value) ?
|
|
1480
|
+
wasm.wasmconversionoptionsupdate_set_maxDepth(this.__wbg_ptr, isLikeNone(value) ? Number.MAX_SAFE_INTEGER : (value) >>> 0);
|
|
1483
1481
|
}
|
|
1484
1482
|
/**
|
|
1485
1483
|
* @param {bigint | null} [value]
|
|
@@ -1578,7 +1576,7 @@ export class WasmConversionOptionsUpdate {
|
|
|
1578
1576
|
* @param {number | null} [value]
|
|
1579
1577
|
*/
|
|
1580
1578
|
set wrapWidth(value) {
|
|
1581
|
-
wasm.wasmconversionoptionsupdate_set_wrapWidth(this.__wbg_ptr, isLikeNone(value) ?
|
|
1579
|
+
wasm.wasmconversionoptionsupdate_set_wrapWidth(this.__wbg_ptr, isLikeNone(value) ? Number.MAX_SAFE_INTEGER : (value) >>> 0);
|
|
1582
1580
|
}
|
|
1583
1581
|
/**
|
|
1584
1582
|
* @returns {boolean | undefined}
|
|
@@ -1689,7 +1687,7 @@ export class WasmConversionOptionsUpdate {
|
|
|
1689
1687
|
*/
|
|
1690
1688
|
get wrapWidth() {
|
|
1691
1689
|
const ret = wasm.wasmconversionoptionsupdate_wrapWidth(this.__wbg_ptr);
|
|
1692
|
-
return ret ===
|
|
1690
|
+
return ret === Number.MAX_SAFE_INTEGER ? undefined : ret;
|
|
1693
1691
|
}
|
|
1694
1692
|
}
|
|
1695
1693
|
if (Symbol.dispose) WasmConversionOptionsUpdate.prototype[Symbol.dispose] = WasmConversionOptionsUpdate.prototype.free;
|
|
@@ -1712,7 +1710,6 @@ if (Symbol.dispose) WasmConversionOptionsUpdate.prototype[Symbol.dispose] = Wasm
|
|
|
1712
1710
|
*/
|
|
1713
1711
|
export class WasmConversionResult {
|
|
1714
1712
|
static __wrap(ptr) {
|
|
1715
|
-
ptr = ptr >>> 0;
|
|
1716
1713
|
const obj = Object.create(WasmConversionResult.prototype);
|
|
1717
1714
|
obj.__wbg_ptr = ptr;
|
|
1718
1715
|
WasmConversionResultFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -1805,7 +1802,7 @@ export class WasmConversionResult {
|
|
|
1805
1802
|
ptr5 = document.__destroy_into_raw();
|
|
1806
1803
|
}
|
|
1807
1804
|
const ret = wasm.wasmconversionresult_new(ptr0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4, ptr5);
|
|
1808
|
-
this.__wbg_ptr = ret
|
|
1805
|
+
this.__wbg_ptr = ret;
|
|
1809
1806
|
WasmConversionResultFinalization.register(this, this.__wbg_ptr, this);
|
|
1810
1807
|
return this;
|
|
1811
1808
|
}
|
|
@@ -1917,7 +1914,6 @@ if (Symbol.dispose) WasmConversionResult.prototype[Symbol.dispose] = WasmConvers
|
|
|
1917
1914
|
*/
|
|
1918
1915
|
export class WasmDocumentMetadata {
|
|
1919
1916
|
static __wrap(ptr) {
|
|
1920
|
-
ptr = ptr >>> 0;
|
|
1921
1917
|
const obj = Object.create(WasmDocumentMetadata.prototype);
|
|
1922
1918
|
obj.__wbg_ptr = ptr;
|
|
1923
1919
|
WasmDocumentMetadataFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -2080,7 +2076,7 @@ export class WasmDocumentMetadata {
|
|
|
2080
2076
|
var ptr6 = isLikeNone(language) ? 0 : passStringToWasm0(language, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2081
2077
|
var len6 = WASM_VECTOR_LEN;
|
|
2082
2078
|
const ret = wasm.wasmdocumentmetadata_new(ptr0, len0, isLikeNone(open_graph) ? 0 : addHeapObject(open_graph), isLikeNone(twitter_card) ? 0 : addHeapObject(twitter_card), isLikeNone(meta_tags) ? 0 : addHeapObject(meta_tags), ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4, ptr5, len5, ptr6, len6, isLikeNone(text_direction) ? 3 : text_direction);
|
|
2083
|
-
this.__wbg_ptr = ret
|
|
2079
|
+
this.__wbg_ptr = ret;
|
|
2084
2080
|
WasmDocumentMetadataFinalization.register(this, this.__wbg_ptr, this);
|
|
2085
2081
|
return this;
|
|
2086
2082
|
}
|
|
@@ -2212,7 +2208,6 @@ if (Symbol.dispose) WasmDocumentMetadata.prototype[Symbol.dispose] = WasmDocumen
|
|
|
2212
2208
|
*/
|
|
2213
2209
|
export class WasmDocumentNode {
|
|
2214
2210
|
static __wrap(ptr) {
|
|
2215
|
-
ptr = ptr >>> 0;
|
|
2216
2211
|
const obj = Object.create(WasmDocumentNode.prototype);
|
|
2217
2212
|
obj.__wbg_ptr = ptr;
|
|
2218
2213
|
WasmDocumentNodeFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -2314,8 +2309,8 @@ export class WasmDocumentNode {
|
|
|
2314
2309
|
const len1 = WASM_VECTOR_LEN;
|
|
2315
2310
|
const ptr2 = passArrayJsValueToWasm0(annotations, wasm.__wbindgen_export);
|
|
2316
2311
|
const len2 = WASM_VECTOR_LEN;
|
|
2317
|
-
const ret = wasm.wasmdocumentnode_new(ptr0, len0, content, ptr1, len1, ptr2, len2, isLikeNone(parent) ?
|
|
2318
|
-
this.__wbg_ptr = ret
|
|
2312
|
+
const ret = wasm.wasmdocumentnode_new(ptr0, len0, content, ptr1, len1, ptr2, len2, isLikeNone(parent) ? Number.MAX_SAFE_INTEGER : (parent) >>> 0, isLikeNone(attributes) ? 0 : addHeapObject(attributes));
|
|
2313
|
+
this.__wbg_ptr = ret;
|
|
2319
2314
|
WasmDocumentNodeFinalization.register(this, this.__wbg_ptr, this);
|
|
2320
2315
|
return this;
|
|
2321
2316
|
}
|
|
@@ -2324,7 +2319,7 @@ export class WasmDocumentNode {
|
|
|
2324
2319
|
*/
|
|
2325
2320
|
get parent() {
|
|
2326
2321
|
const ret = wasm.wasmdocumentnode_parent(this.__wbg_ptr);
|
|
2327
|
-
return ret ===
|
|
2322
|
+
return ret === Number.MAX_SAFE_INTEGER ? undefined : ret;
|
|
2328
2323
|
}
|
|
2329
2324
|
/**
|
|
2330
2325
|
* @param {WasmTextAnnotation[]} value
|
|
@@ -2366,7 +2361,7 @@ export class WasmDocumentNode {
|
|
|
2366
2361
|
* @param {number | null} [value]
|
|
2367
2362
|
*/
|
|
2368
2363
|
set parent(value) {
|
|
2369
|
-
wasm.wasmdocumentnode_set_parent(this.__wbg_ptr, isLikeNone(value) ?
|
|
2364
|
+
wasm.wasmdocumentnode_set_parent(this.__wbg_ptr, isLikeNone(value) ? Number.MAX_SAFE_INTEGER : (value) >>> 0);
|
|
2370
2365
|
}
|
|
2371
2366
|
}
|
|
2372
2367
|
if (Symbol.dispose) WasmDocumentNode.prototype[Symbol.dispose] = WasmDocumentNode.prototype.free;
|
|
@@ -2378,7 +2373,6 @@ if (Symbol.dispose) WasmDocumentNode.prototype[Symbol.dispose] = WasmDocumentNod
|
|
|
2378
2373
|
*/
|
|
2379
2374
|
export class WasmDocumentStructure {
|
|
2380
2375
|
static __wrap(ptr) {
|
|
2381
|
-
ptr = ptr >>> 0;
|
|
2382
2376
|
const obj = Object.create(WasmDocumentStructure.prototype);
|
|
2383
2377
|
obj.__wbg_ptr = ptr;
|
|
2384
2378
|
WasmDocumentStructureFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -2404,7 +2398,7 @@ export class WasmDocumentStructure {
|
|
|
2404
2398
|
var ptr1 = isLikeNone(source_format) ? 0 : passStringToWasm0(source_format, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2405
2399
|
var len1 = WASM_VECTOR_LEN;
|
|
2406
2400
|
const ret = wasm.wasmdocumentstructure_new(ptr0, len0, ptr1, len1);
|
|
2407
|
-
this.__wbg_ptr = ret
|
|
2401
|
+
this.__wbg_ptr = ret;
|
|
2408
2402
|
WasmDocumentStructureFinalization.register(this, this.__wbg_ptr, this);
|
|
2409
2403
|
return this;
|
|
2410
2404
|
}
|
|
@@ -2467,7 +2461,6 @@ if (Symbol.dispose) WasmDocumentStructure.prototype[Symbol.dispose] = WasmDocume
|
|
|
2467
2461
|
*/
|
|
2468
2462
|
export class WasmGridCell {
|
|
2469
2463
|
static __wrap(ptr) {
|
|
2470
|
-
ptr = ptr >>> 0;
|
|
2471
2464
|
const obj = Object.create(WasmGridCell.prototype);
|
|
2472
2465
|
obj.__wbg_ptr = ptr;
|
|
2473
2466
|
WasmGridCellFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -2541,7 +2534,7 @@ export class WasmGridCell {
|
|
|
2541
2534
|
const ptr0 = passStringToWasm0(content, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2542
2535
|
const len0 = WASM_VECTOR_LEN;
|
|
2543
2536
|
const ret = wasm.wasmgridcell_new(ptr0, len0, row, col, row_span, col_span, is_header);
|
|
2544
|
-
this.__wbg_ptr = ret
|
|
2537
|
+
this.__wbg_ptr = ret;
|
|
2545
2538
|
WasmGridCellFinalization.register(this, this.__wbg_ptr, this);
|
|
2546
2539
|
return this;
|
|
2547
2540
|
}
|
|
@@ -2624,7 +2617,6 @@ if (Symbol.dispose) WasmGridCell.prototype[Symbol.dispose] = WasmGridCell.protot
|
|
|
2624
2617
|
*/
|
|
2625
2618
|
export class WasmHeaderMetadata {
|
|
2626
2619
|
static __wrap(ptr) {
|
|
2627
|
-
ptr = ptr >>> 0;
|
|
2628
2620
|
const obj = Object.create(WasmHeaderMetadata.prototype);
|
|
2629
2621
|
obj.__wbg_ptr = ptr;
|
|
2630
2622
|
WasmHeaderMetadataFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -2734,7 +2726,7 @@ export class WasmHeaderMetadata {
|
|
|
2734
2726
|
var ptr1 = isLikeNone(id) ? 0 : passStringToWasm0(id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2735
2727
|
var len1 = WASM_VECTOR_LEN;
|
|
2736
2728
|
const ret = wasm.wasmheadermetadata_new(level, ptr0, len0, depth, html_offset, ptr1, len1);
|
|
2737
|
-
this.__wbg_ptr = ret
|
|
2729
|
+
this.__wbg_ptr = ret;
|
|
2738
2730
|
WasmHeaderMetadataFinalization.register(this, this.__wbg_ptr, this);
|
|
2739
2731
|
return this;
|
|
2740
2732
|
}
|
|
@@ -2842,7 +2834,6 @@ export const WasmHighlightStyle = Object.freeze({
|
|
|
2842
2834
|
*/
|
|
2843
2835
|
export class WasmHtmlMetadata {
|
|
2844
2836
|
static __wrap(ptr) {
|
|
2845
|
-
ptr = ptr >>> 0;
|
|
2846
2837
|
const obj = Object.create(WasmHtmlMetadata.prototype);
|
|
2847
2838
|
obj.__wbg_ptr = ptr;
|
|
2848
2839
|
WasmHtmlMetadataFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -2935,7 +2926,7 @@ export class WasmHtmlMetadata {
|
|
|
2935
2926
|
var ptr4 = isLikeNone(structured_data) ? 0 : passArrayJsValueToWasm0(structured_data, wasm.__wbindgen_export);
|
|
2936
2927
|
var len4 = WASM_VECTOR_LEN;
|
|
2937
2928
|
const ret = wasm.wasmhtmlmetadata_new(ptr0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4);
|
|
2938
|
-
this.__wbg_ptr = ret
|
|
2929
|
+
this.__wbg_ptr = ret;
|
|
2939
2930
|
WasmHtmlMetadataFinalization.register(this, this.__wbg_ptr, this);
|
|
2940
2931
|
return this;
|
|
2941
2932
|
}
|
|
@@ -3022,7 +3013,6 @@ if (Symbol.dispose) WasmHtmlMetadata.prototype[Symbol.dispose] = WasmHtmlMetadat
|
|
|
3022
3013
|
*/
|
|
3023
3014
|
export class WasmImageMetadata {
|
|
3024
3015
|
static __wrap(ptr) {
|
|
3025
|
-
ptr = ptr >>> 0;
|
|
3026
3016
|
const obj = Object.create(WasmImageMetadata.prototype);
|
|
3027
3017
|
obj.__wbg_ptr = ptr;
|
|
3028
3018
|
WasmImageMetadataFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -3114,7 +3104,7 @@ export class WasmImageMetadata {
|
|
|
3114
3104
|
var ptr3 = isLikeNone(dimensions) ? 0 : passArray32ToWasm0(dimensions, wasm.__wbindgen_export);
|
|
3115
3105
|
var len3 = WASM_VECTOR_LEN;
|
|
3116
3106
|
const ret = wasm.wasmimagemetadata_new(ptr0, len0, image_type, addHeapObject(attributes), ptr1, len1, ptr2, len2, ptr3, len3);
|
|
3117
|
-
this.__wbg_ptr = ret
|
|
3107
|
+
this.__wbg_ptr = ret;
|
|
3118
3108
|
WasmImageMetadataFinalization.register(this, this.__wbg_ptr, this);
|
|
3119
3109
|
return this;
|
|
3120
3110
|
}
|
|
@@ -3240,7 +3230,6 @@ export const WasmImageType = Object.freeze({
|
|
|
3240
3230
|
*/
|
|
3241
3231
|
export class WasmLinkMetadata {
|
|
3242
3232
|
static __wrap(ptr) {
|
|
3243
|
-
ptr = ptr >>> 0;
|
|
3244
3233
|
const obj = Object.create(WasmLinkMetadata.prototype);
|
|
3245
3234
|
obj.__wbg_ptr = ptr;
|
|
3246
3235
|
WasmLinkMetadataFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -3342,7 +3331,7 @@ export class WasmLinkMetadata {
|
|
|
3342
3331
|
var ptr3 = isLikeNone(title) ? 0 : passStringToWasm0(title, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
3343
3332
|
var len3 = WASM_VECTOR_LEN;
|
|
3344
3333
|
const ret = wasm.wasmlinkmetadata_new(ptr0, len0, ptr1, len1, link_type, ptr2, len2, addHeapObject(attributes), ptr3, len3);
|
|
3345
|
-
this.__wbg_ptr = ret
|
|
3334
|
+
this.__wbg_ptr = ret;
|
|
3346
3335
|
WasmLinkMetadataFinalization.register(this, this.__wbg_ptr, this);
|
|
3347
3336
|
return this;
|
|
3348
3337
|
}
|
|
@@ -3578,7 +3567,7 @@ export class WasmNodeContext {
|
|
|
3578
3567
|
var ptr1 = isLikeNone(parent_tag) ? 0 : passStringToWasm0(parent_tag, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
3579
3568
|
var len1 = WASM_VECTOR_LEN;
|
|
3580
3569
|
const ret = wasm.wasmnodecontext_new(node_type, ptr0, len0, addHeapObject(attributes), depth, index_in_parent, is_inline, ptr1, len1);
|
|
3581
|
-
this.__wbg_ptr = ret
|
|
3570
|
+
this.__wbg_ptr = ret;
|
|
3582
3571
|
WasmNodeContextFinalization.register(this, this.__wbg_ptr, this);
|
|
3583
3572
|
return this;
|
|
3584
3573
|
}
|
|
@@ -3791,7 +3780,6 @@ export const WasmOutputFormat = Object.freeze({
|
|
|
3791
3780
|
*/
|
|
3792
3781
|
export class WasmPreprocessingOptions {
|
|
3793
3782
|
static __wrap(ptr) {
|
|
3794
|
-
ptr = ptr >>> 0;
|
|
3795
3783
|
const obj = Object.create(WasmPreprocessingOptions.prototype);
|
|
3796
3784
|
obj.__wbg_ptr = ptr;
|
|
3797
3785
|
WasmPreprocessingOptionsFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -3877,7 +3865,7 @@ export class WasmPreprocessingOptions {
|
|
|
3877
3865
|
*/
|
|
3878
3866
|
constructor(enabled, preset, remove_navigation, remove_forms) {
|
|
3879
3867
|
const ret = wasm.wasmpreprocessingoptions_new(isLikeNone(enabled) ? 0xFFFFFF : enabled ? 1 : 0, isLikeNone(preset) ? 3 : preset, isLikeNone(remove_navigation) ? 0xFFFFFF : remove_navigation ? 1 : 0, isLikeNone(remove_forms) ? 0xFFFFFF : remove_forms ? 1 : 0);
|
|
3880
|
-
this.__wbg_ptr = ret
|
|
3868
|
+
this.__wbg_ptr = ret;
|
|
3881
3869
|
WasmPreprocessingOptionsFinalization.register(this, this.__wbg_ptr, this);
|
|
3882
3870
|
return this;
|
|
3883
3871
|
}
|
|
@@ -3938,7 +3926,6 @@ if (Symbol.dispose) WasmPreprocessingOptions.prototype[Symbol.dispose] = WasmPre
|
|
|
3938
3926
|
*/
|
|
3939
3927
|
export class WasmPreprocessingOptionsUpdate {
|
|
3940
3928
|
static __wrap(ptr) {
|
|
3941
|
-
ptr = ptr >>> 0;
|
|
3942
3929
|
const obj = Object.create(WasmPreprocessingOptionsUpdate.prototype);
|
|
3943
3930
|
obj.__wbg_ptr = ptr;
|
|
3944
3931
|
WasmPreprocessingOptionsUpdateFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -3969,7 +3956,7 @@ export class WasmPreprocessingOptionsUpdate {
|
|
|
3969
3956
|
*/
|
|
3970
3957
|
constructor(enabled, preset, remove_navigation, remove_forms) {
|
|
3971
3958
|
const ret = wasm.wasmpreprocessingoptionsupdate_new(isLikeNone(enabled) ? 0xFFFFFF : enabled ? 1 : 0, isLikeNone(preset) ? 3 : preset, isLikeNone(remove_navigation) ? 0xFFFFFF : remove_navigation ? 1 : 0, isLikeNone(remove_forms) ? 0xFFFFFF : remove_forms ? 1 : 0);
|
|
3972
|
-
this.__wbg_ptr = ret
|
|
3959
|
+
this.__wbg_ptr = ret;
|
|
3973
3960
|
WasmPreprocessingOptionsUpdateFinalization.register(this, this.__wbg_ptr, this);
|
|
3974
3961
|
return this;
|
|
3975
3962
|
}
|
|
@@ -4038,7 +4025,6 @@ export const WasmPreprocessingPreset = Object.freeze({
|
|
|
4038
4025
|
*/
|
|
4039
4026
|
export class WasmProcessingWarning {
|
|
4040
4027
|
static __wrap(ptr) {
|
|
4041
|
-
ptr = ptr >>> 0;
|
|
4042
4028
|
const obj = Object.create(WasmProcessingWarning.prototype);
|
|
4043
4029
|
obj.__wbg_ptr = ptr;
|
|
4044
4030
|
WasmProcessingWarningFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -4094,7 +4080,7 @@ export class WasmProcessingWarning {
|
|
|
4094
4080
|
const ptr0 = passStringToWasm0(message, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
4095
4081
|
const len0 = WASM_VECTOR_LEN;
|
|
4096
4082
|
const ret = wasm.wasmprocessingwarning_new(ptr0, len0, kind);
|
|
4097
|
-
this.__wbg_ptr = ret
|
|
4083
|
+
this.__wbg_ptr = ret;
|
|
4098
4084
|
WasmProcessingWarningFinalization.register(this, this.__wbg_ptr, this);
|
|
4099
4085
|
return this;
|
|
4100
4086
|
}
|
|
@@ -4136,7 +4122,6 @@ if (Symbol.dispose) WasmProcessingWarning.prototype[Symbol.dispose] = WasmProces
|
|
|
4136
4122
|
*/
|
|
4137
4123
|
export class WasmStructuredData {
|
|
4138
4124
|
static __wrap(ptr) {
|
|
4139
|
-
ptr = ptr >>> 0;
|
|
4140
4125
|
const obj = Object.create(WasmStructuredData.prototype);
|
|
4141
4126
|
obj.__wbg_ptr = ptr;
|
|
4142
4127
|
WasmStructuredDataFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -4176,7 +4161,7 @@ export class WasmStructuredData {
|
|
|
4176
4161
|
var ptr1 = isLikeNone(schema_type) ? 0 : passStringToWasm0(schema_type, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
4177
4162
|
var len1 = WASM_VECTOR_LEN;
|
|
4178
4163
|
const ret = wasm.wasmstructureddata_new(data_type, ptr0, len0, ptr1, len1);
|
|
4179
|
-
this.__wbg_ptr = ret
|
|
4164
|
+
this.__wbg_ptr = ret;
|
|
4180
4165
|
WasmStructuredDataFinalization.register(this, this.__wbg_ptr, this);
|
|
4181
4166
|
return this;
|
|
4182
4167
|
}
|
|
@@ -4260,7 +4245,6 @@ export const WasmStructuredDataType = Object.freeze({
|
|
|
4260
4245
|
*/
|
|
4261
4246
|
export class WasmTableData {
|
|
4262
4247
|
static __wrap(ptr) {
|
|
4263
|
-
ptr = ptr >>> 0;
|
|
4264
4248
|
const obj = Object.create(WasmTableData.prototype);
|
|
4265
4249
|
obj.__wbg_ptr = ptr;
|
|
4266
4250
|
WasmTableDataFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -4318,7 +4302,7 @@ export class WasmTableData {
|
|
|
4318
4302
|
const ptr1 = passStringToWasm0(markdown, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
4319
4303
|
const len1 = WASM_VECTOR_LEN;
|
|
4320
4304
|
const ret = wasm.wasmtabledata_new(ptr0, ptr1, len1);
|
|
4321
|
-
this.__wbg_ptr = ret
|
|
4305
|
+
this.__wbg_ptr = ret;
|
|
4322
4306
|
WasmTableDataFinalization.register(this, this.__wbg_ptr, this);
|
|
4323
4307
|
return this;
|
|
4324
4308
|
}
|
|
@@ -4346,7 +4330,6 @@ if (Symbol.dispose) WasmTableData.prototype[Symbol.dispose] = WasmTableData.prot
|
|
|
4346
4330
|
*/
|
|
4347
4331
|
export class WasmTableGrid {
|
|
4348
4332
|
static __wrap(ptr) {
|
|
4349
|
-
ptr = ptr >>> 0;
|
|
4350
4333
|
const obj = Object.create(WasmTableGrid.prototype);
|
|
4351
4334
|
obj.__wbg_ptr = ptr;
|
|
4352
4335
|
WasmTableGridFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -4393,8 +4376,8 @@ export class WasmTableGrid {
|
|
|
4393
4376
|
constructor(rows, cols, cells) {
|
|
4394
4377
|
var ptr0 = isLikeNone(cells) ? 0 : passArrayJsValueToWasm0(cells, wasm.__wbindgen_export);
|
|
4395
4378
|
var len0 = WASM_VECTOR_LEN;
|
|
4396
|
-
const ret = wasm.wasmtablegrid_new(isLikeNone(rows) ?
|
|
4397
|
-
this.__wbg_ptr = ret
|
|
4379
|
+
const ret = wasm.wasmtablegrid_new(isLikeNone(rows) ? Number.MAX_SAFE_INTEGER : (rows) >>> 0, isLikeNone(cols) ? Number.MAX_SAFE_INTEGER : (cols) >>> 0, ptr0, len0);
|
|
4380
|
+
this.__wbg_ptr = ret;
|
|
4398
4381
|
WasmTableGridFinalization.register(this, this.__wbg_ptr, this);
|
|
4399
4382
|
return this;
|
|
4400
4383
|
}
|
|
@@ -4435,7 +4418,6 @@ if (Symbol.dispose) WasmTableGrid.prototype[Symbol.dispose] = WasmTableGrid.prot
|
|
|
4435
4418
|
*/
|
|
4436
4419
|
export class WasmTextAnnotation {
|
|
4437
4420
|
static __wrap(ptr) {
|
|
4438
|
-
ptr = ptr >>> 0;
|
|
4439
4421
|
const obj = Object.create(WasmTextAnnotation.prototype);
|
|
4440
4422
|
obj.__wbg_ptr = ptr;
|
|
4441
4423
|
WasmTextAnnotationFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -4478,7 +4460,7 @@ export class WasmTextAnnotation {
|
|
|
4478
4460
|
*/
|
|
4479
4461
|
constructor(start, end, kind) {
|
|
4480
4462
|
const ret = wasm.wasmtextannotation_new(start, end, kind);
|
|
4481
|
-
this.__wbg_ptr = ret
|
|
4463
|
+
this.__wbg_ptr = ret;
|
|
4482
4464
|
WasmTextAnnotationFinalization.register(this, this.__wbg_ptr, this);
|
|
4483
4465
|
return this;
|
|
4484
4466
|
}
|
|
@@ -4593,23 +4575,23 @@ export function convert(html, options, visitor) {
|
|
|
4593
4575
|
function __wbg_get_imports() {
|
|
4594
4576
|
const import0 = {
|
|
4595
4577
|
__proto__: null,
|
|
4596
|
-
|
|
4578
|
+
__wbg_Error_3639a60ed15f87e7: function(arg0, arg1) {
|
|
4597
4579
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
4598
4580
|
return addHeapObject(ret);
|
|
4599
4581
|
},
|
|
4600
|
-
|
|
4582
|
+
__wbg___wbindgen_is_function_2f0fd7ceb86e64c5: function(arg0) {
|
|
4601
4583
|
const ret = typeof(getObject(arg0)) === 'function';
|
|
4602
4584
|
return ret;
|
|
4603
4585
|
},
|
|
4604
|
-
|
|
4586
|
+
__wbg___wbindgen_is_string_eddc07a3efad52e6: function(arg0) {
|
|
4605
4587
|
const ret = typeof(getObject(arg0)) === 'string';
|
|
4606
4588
|
return ret;
|
|
4607
4589
|
},
|
|
4608
|
-
|
|
4590
|
+
__wbg___wbindgen_is_undefined_244a92c34d3b6ec0: function(arg0) {
|
|
4609
4591
|
const ret = getObject(arg0) === undefined;
|
|
4610
4592
|
return ret;
|
|
4611
4593
|
},
|
|
4612
|
-
|
|
4594
|
+
__wbg___wbindgen_string_get_965592073e5d848c: function(arg0, arg1) {
|
|
4613
4595
|
const obj = getObject(arg1);
|
|
4614
4596
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
4615
4597
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
@@ -4617,45 +4599,45 @@ function __wbg_get_imports() {
|
|
|
4617
4599
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
4618
4600
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
4619
4601
|
},
|
|
4620
|
-
|
|
4602
|
+
__wbg___wbindgen_throw_9c75d47bf9e7731e: function(arg0, arg1) {
|
|
4621
4603
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
4622
4604
|
},
|
|
4623
|
-
|
|
4605
|
+
__wbg_apply_0f21c8b7ff1b23f8: function() { return handleError(function (arg0, arg1, arg2) {
|
|
4624
4606
|
const ret = getObject(arg0).apply(getObject(arg1), getObject(arg2));
|
|
4625
4607
|
return addHeapObject(ret);
|
|
4626
4608
|
}, arguments); },
|
|
4627
|
-
|
|
4609
|
+
__wbg_get_41476db20fef99a8: function() { return handleError(function (arg0, arg1) {
|
|
4628
4610
|
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
4629
4611
|
return addHeapObject(ret);
|
|
4630
4612
|
}, arguments); },
|
|
4631
|
-
|
|
4613
|
+
__wbg_has_3a6f31f647e0ba22: function() { return handleError(function (arg0, arg1) {
|
|
4632
4614
|
const ret = Reflect.has(getObject(arg0), getObject(arg1));
|
|
4633
4615
|
return ret;
|
|
4634
4616
|
}, arguments); },
|
|
4635
|
-
|
|
4636
|
-
const ret = new
|
|
4617
|
+
__wbg_new_2fad8ca02fd00684: function() {
|
|
4618
|
+
const ret = new Object();
|
|
4637
4619
|
return addHeapObject(ret);
|
|
4638
4620
|
},
|
|
4639
|
-
|
|
4621
|
+
__wbg_new_3baa8d9866155c79: function() {
|
|
4640
4622
|
const ret = new Array();
|
|
4641
4623
|
return addHeapObject(ret);
|
|
4642
4624
|
},
|
|
4643
|
-
|
|
4644
|
-
const ret = new
|
|
4625
|
+
__wbg_new_46ae4e4ff2a07a64: function() {
|
|
4626
|
+
const ret = new Map();
|
|
4645
4627
|
return addHeapObject(ret);
|
|
4646
4628
|
},
|
|
4647
|
-
|
|
4629
|
+
__wbg_push_60a5366c0bb22a7d: function(arg0, arg1) {
|
|
4648
4630
|
const ret = getObject(arg0).push(getObject(arg1));
|
|
4649
4631
|
return ret;
|
|
4650
4632
|
},
|
|
4651
|
-
|
|
4633
|
+
__wbg_set_5337f8ac82364a3f: function() { return handleError(function (arg0, arg1, arg2) {
|
|
4652
4634
|
const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
|
|
4653
4635
|
return ret;
|
|
4654
4636
|
}, arguments); },
|
|
4655
4637
|
__wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
|
|
4656
4638
|
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
4657
4639
|
},
|
|
4658
|
-
|
|
4640
|
+
__wbg_set_82f7a370f604db70: function(arg0, arg1, arg2) {
|
|
4659
4641
|
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
4660
4642
|
return addHeapObject(ret);
|
|
4661
4643
|
},
|
|
@@ -4757,64 +4739,64 @@ function __wbg_get_imports() {
|
|
|
4757
4739
|
|
|
4758
4740
|
const WasmConversionOptionsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4759
4741
|
? { register: () => {}, unregister: () => {} }
|
|
4760
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmconversionoptions_free(ptr
|
|
4742
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmconversionoptions_free(ptr, 1));
|
|
4761
4743
|
const WasmConversionOptionsBuilderFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4762
4744
|
? { register: () => {}, unregister: () => {} }
|
|
4763
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmconversionoptionsbuilder_free(ptr
|
|
4745
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmconversionoptionsbuilder_free(ptr, 1));
|
|
4764
4746
|
const WasmConversionOptionsUpdateFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4765
4747
|
? { register: () => {}, unregister: () => {} }
|
|
4766
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmconversionoptionsupdate_free(ptr
|
|
4748
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmconversionoptionsupdate_free(ptr, 1));
|
|
4767
4749
|
const WasmConversionResultFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4768
4750
|
? { register: () => {}, unregister: () => {} }
|
|
4769
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmconversionresult_free(ptr
|
|
4751
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmconversionresult_free(ptr, 1));
|
|
4770
4752
|
const WasmDocumentMetadataFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4771
4753
|
? { register: () => {}, unregister: () => {} }
|
|
4772
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmdocumentmetadata_free(ptr
|
|
4754
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmdocumentmetadata_free(ptr, 1));
|
|
4773
4755
|
const WasmDocumentNodeFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4774
4756
|
? { register: () => {}, unregister: () => {} }
|
|
4775
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmdocumentnode_free(ptr
|
|
4757
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmdocumentnode_free(ptr, 1));
|
|
4776
4758
|
const WasmDocumentStructureFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4777
4759
|
? { register: () => {}, unregister: () => {} }
|
|
4778
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmdocumentstructure_free(ptr
|
|
4760
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmdocumentstructure_free(ptr, 1));
|
|
4779
4761
|
const WasmGridCellFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4780
4762
|
? { register: () => {}, unregister: () => {} }
|
|
4781
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmgridcell_free(ptr
|
|
4763
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmgridcell_free(ptr, 1));
|
|
4782
4764
|
const WasmHeaderMetadataFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4783
4765
|
? { register: () => {}, unregister: () => {} }
|
|
4784
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmheadermetadata_free(ptr
|
|
4766
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmheadermetadata_free(ptr, 1));
|
|
4785
4767
|
const WasmHtmlMetadataFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4786
4768
|
? { register: () => {}, unregister: () => {} }
|
|
4787
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmhtmlmetadata_free(ptr
|
|
4769
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmhtmlmetadata_free(ptr, 1));
|
|
4788
4770
|
const WasmImageMetadataFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4789
4771
|
? { register: () => {}, unregister: () => {} }
|
|
4790
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmimagemetadata_free(ptr
|
|
4772
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmimagemetadata_free(ptr, 1));
|
|
4791
4773
|
const WasmLinkMetadataFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4792
4774
|
? { register: () => {}, unregister: () => {} }
|
|
4793
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmlinkmetadata_free(ptr
|
|
4775
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmlinkmetadata_free(ptr, 1));
|
|
4794
4776
|
const WasmNodeContextFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4795
4777
|
? { register: () => {}, unregister: () => {} }
|
|
4796
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmnodecontext_free(ptr
|
|
4778
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmnodecontext_free(ptr, 1));
|
|
4797
4779
|
const WasmPreprocessingOptionsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4798
4780
|
? { register: () => {}, unregister: () => {} }
|
|
4799
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmpreprocessingoptions_free(ptr
|
|
4781
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmpreprocessingoptions_free(ptr, 1));
|
|
4800
4782
|
const WasmPreprocessingOptionsUpdateFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4801
4783
|
? { register: () => {}, unregister: () => {} }
|
|
4802
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmpreprocessingoptionsupdate_free(ptr
|
|
4784
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmpreprocessingoptionsupdate_free(ptr, 1));
|
|
4803
4785
|
const WasmProcessingWarningFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4804
4786
|
? { register: () => {}, unregister: () => {} }
|
|
4805
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmprocessingwarning_free(ptr
|
|
4787
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmprocessingwarning_free(ptr, 1));
|
|
4806
4788
|
const WasmStructuredDataFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4807
4789
|
? { register: () => {}, unregister: () => {} }
|
|
4808
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmstructureddata_free(ptr
|
|
4790
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmstructureddata_free(ptr, 1));
|
|
4809
4791
|
const WasmTableDataFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4810
4792
|
? { register: () => {}, unregister: () => {} }
|
|
4811
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmtabledata_free(ptr
|
|
4793
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmtabledata_free(ptr, 1));
|
|
4812
4794
|
const WasmTableGridFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4813
4795
|
? { register: () => {}, unregister: () => {} }
|
|
4814
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmtablegrid_free(ptr
|
|
4796
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmtablegrid_free(ptr, 1));
|
|
4815
4797
|
const WasmTextAnnotationFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4816
4798
|
? { register: () => {}, unregister: () => {} }
|
|
4817
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmtextannotation_free(ptr
|
|
4799
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmtextannotation_free(ptr, 1));
|
|
4818
4800
|
|
|
4819
4801
|
function addHeapObject(obj) {
|
|
4820
4802
|
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
@@ -4861,8 +4843,7 @@ function getDataViewMemory0() {
|
|
|
4861
4843
|
}
|
|
4862
4844
|
|
|
4863
4845
|
function getStringFromWasm0(ptr, len) {
|
|
4864
|
-
|
|
4865
|
-
return decodeText(ptr, len);
|
|
4846
|
+
return decodeText(ptr >>> 0, len);
|
|
4866
4847
|
}
|
|
4867
4848
|
|
|
4868
4849
|
let cachedUint32ArrayMemory0 = null;
|
|
@@ -4989,8 +4970,9 @@ if (!('encodeInto' in cachedTextEncoder)) {
|
|
|
4989
4970
|
|
|
4990
4971
|
let WASM_VECTOR_LEN = 0;
|
|
4991
4972
|
|
|
4992
|
-
let wasmModule, wasm;
|
|
4973
|
+
let wasmModule, wasmInstance, wasm;
|
|
4993
4974
|
function __wbg_finalize_init(instance, module) {
|
|
4975
|
+
wasmInstance = instance;
|
|
4994
4976
|
wasm = instance.exports;
|
|
4995
4977
|
wasmModule = module;
|
|
4996
4978
|
cachedDataViewMemory0 = null;
|
|
Binary file
|
package/dist-web/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kreuzberg/html-to-markdown-wasm",
|
|
3
|
-
"version": "3.4.0-rc.
|
|
3
|
+
"version": "3.4.0-rc.21",
|
|
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",
|