@kreuzberg/html-to-markdown-wasm 3.2.3 → 3.2.6
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 +16 -2
- package/dist/html_to_markdown_wasm_bg.js +118 -5
- package/dist/html_to_markdown_wasm_bg.wasm +0 -0
- package/dist/html_to_markdown_wasm_bg.wasm.d.ts +16 -3
- package/dist/package.json +6 -1
- package/dist-node/html_to_markdown_wasm.d.ts +16 -2
- package/dist-node/html_to_markdown_wasm.js +118 -5
- package/dist-node/html_to_markdown_wasm_bg.wasm +0 -0
- package/dist-node/html_to_markdown_wasm_bg.wasm.d.ts +16 -3
- package/dist-node/package.json +7 -2
- package/dist-web/html_to_markdown_wasm.d.ts +32 -5
- package/dist-web/html_to_markdown_wasm.js +118 -5
- package/dist-web/html_to_markdown_wasm_bg.wasm +0 -0
- package/dist-web/html_to_markdown_wasm_bg.wasm.d.ts +16 -3
- package/dist-web/package.json +6 -1
- package/package.json +1 -1
|
@@ -48,6 +48,14 @@ class WasmConversionOptions {
|
|
|
48
48
|
const ptr = this.__destroy_into_raw();
|
|
49
49
|
wasm.__wbg_wasmconversionoptions_free(ptr, 0);
|
|
50
50
|
}
|
|
51
|
+
/**
|
|
52
|
+
* @param {WasmConversionOptionsUpdate} _update
|
|
53
|
+
*/
|
|
54
|
+
applyUpdate(_update) {
|
|
55
|
+
_assertClass(_update, WasmConversionOptionsUpdate);
|
|
56
|
+
var ptr0 = _update.__destroy_into_raw();
|
|
57
|
+
wasm.wasmconversionoptions_applyUpdate(this.__wbg_ptr, ptr0);
|
|
58
|
+
}
|
|
51
59
|
/**
|
|
52
60
|
* @returns {boolean}
|
|
53
61
|
*/
|
|
@@ -210,6 +218,26 @@ class WasmConversionOptions {
|
|
|
210
218
|
const ret = wasm.wasmconversionoptions_extractMetadata(this.__wbg_ptr);
|
|
211
219
|
return ret !== 0;
|
|
212
220
|
}
|
|
221
|
+
/**
|
|
222
|
+
* @param {WasmConversionOptionsUpdate} update
|
|
223
|
+
* @returns {WasmConversionOptions}
|
|
224
|
+
*/
|
|
225
|
+
static from(update) {
|
|
226
|
+
_assertClass(update, WasmConversionOptionsUpdate);
|
|
227
|
+
var ptr0 = update.__destroy_into_raw();
|
|
228
|
+
const ret = wasm.wasmconversionoptions_from(ptr0);
|
|
229
|
+
return WasmConversionOptions.__wrap(ret);
|
|
230
|
+
}
|
|
231
|
+
/**
|
|
232
|
+
* @param {WasmConversionOptionsUpdate} update
|
|
233
|
+
* @returns {WasmConversionOptions}
|
|
234
|
+
*/
|
|
235
|
+
static fromUpdate(update) {
|
|
236
|
+
_assertClass(update, WasmConversionOptionsUpdate);
|
|
237
|
+
var ptr0 = update.__destroy_into_raw();
|
|
238
|
+
const ret = wasm.wasmconversionoptions_fromUpdate(ptr0);
|
|
239
|
+
return WasmConversionOptions.__wrap(ret);
|
|
240
|
+
}
|
|
213
241
|
/**
|
|
214
242
|
* @returns {WasmHeadingStyle}
|
|
215
243
|
*/
|
|
@@ -275,6 +303,13 @@ class WasmConversionOptions {
|
|
|
275
303
|
const ret = wasm.wasmconversionoptions_listIndentWidth(this.__wbg_ptr);
|
|
276
304
|
return ret >>> 0;
|
|
277
305
|
}
|
|
306
|
+
/**
|
|
307
|
+
* @returns {number | undefined}
|
|
308
|
+
*/
|
|
309
|
+
get maxDepth() {
|
|
310
|
+
const ret = wasm.wasmconversionoptions_maxDepth(this.__wbg_ptr);
|
|
311
|
+
return ret === 0x100000001 ? undefined : ret;
|
|
312
|
+
}
|
|
278
313
|
/**
|
|
279
314
|
* @returns {bigint}
|
|
280
315
|
*/
|
|
@@ -321,8 +356,9 @@ class WasmConversionOptions {
|
|
|
321
356
|
* @param {bigint | null} [max_image_size]
|
|
322
357
|
* @param {boolean | null} [capture_svg]
|
|
323
358
|
* @param {boolean | null} [infer_dimensions]
|
|
359
|
+
* @param {number | null} [max_depth]
|
|
324
360
|
*/
|
|
325
|
-
constructor(heading_style, list_indent_type, list_indent_width, bullets, strong_em_symbol, escape_asterisks, escape_underscores, escape_misc, escape_ascii, code_language, autolinks, default_title, br_in_tables, highlight_style, extract_metadata, whitespace_mode, strip_newlines, wrap, wrap_width, convert_as_inline, sub_symbol, sup_symbol, newline_style, code_block_style, keep_inline_images_in, preprocessing, encoding, debug, strip_tags, preserve_tags, skip_images, link_style, output_format, include_document_structure, extract_images, max_image_size, capture_svg, infer_dimensions) {
|
|
361
|
+
constructor(heading_style, list_indent_type, list_indent_width, bullets, strong_em_symbol, escape_asterisks, escape_underscores, escape_misc, escape_ascii, code_language, autolinks, default_title, br_in_tables, highlight_style, extract_metadata, whitespace_mode, strip_newlines, wrap, wrap_width, convert_as_inline, sub_symbol, sup_symbol, newline_style, code_block_style, keep_inline_images_in, preprocessing, encoding, debug, strip_tags, preserve_tags, skip_images, link_style, output_format, include_document_structure, extract_images, max_image_size, capture_svg, infer_dimensions, max_depth) {
|
|
326
362
|
var ptr0 = isLikeNone(bullets) ? 0 : passStringToWasm0(bullets, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
327
363
|
var len0 = WASM_VECTOR_LEN;
|
|
328
364
|
var ptr1 = isLikeNone(strong_em_symbol) ? 0 : passStringToWasm0(strong_em_symbol, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
@@ -346,7 +382,7 @@ class WasmConversionOptions {
|
|
|
346
382
|
var len8 = WASM_VECTOR_LEN;
|
|
347
383
|
var ptr9 = isLikeNone(preserve_tags) ? 0 : passArrayJsValueToWasm0(preserve_tags, wasm.__wbindgen_export);
|
|
348
384
|
var len9 = WASM_VECTOR_LEN;
|
|
349
|
-
const ret = wasm.wasmconversionoptions_new(isLikeNone(heading_style) ? 3 : heading_style, isLikeNone(list_indent_type) ? 2 : list_indent_type, isLikeNone(list_indent_width) ? 0x100000001 : (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) ? 0x100000001 : (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);
|
|
385
|
+
const ret = wasm.wasmconversionoptions_new(isLikeNone(heading_style) ? 3 : heading_style, isLikeNone(list_indent_type) ? 2 : list_indent_type, isLikeNone(list_indent_width) ? 0x100000001 : (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) ? 0x100000001 : (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) ? 0x100000001 : (max_depth) >>> 0);
|
|
350
386
|
this.__wbg_ptr = ret >>> 0;
|
|
351
387
|
WasmConversionOptionsFinalization.register(this, this.__wbg_ptr, this);
|
|
352
388
|
return this;
|
|
@@ -540,6 +576,12 @@ class WasmConversionOptions {
|
|
|
540
576
|
set listIndentWidth(value) {
|
|
541
577
|
wasm.wasmconversionoptions_set_listIndentWidth(this.__wbg_ptr, value);
|
|
542
578
|
}
|
|
579
|
+
/**
|
|
580
|
+
* @param {number | null} [value]
|
|
581
|
+
*/
|
|
582
|
+
set maxDepth(value) {
|
|
583
|
+
wasm.wasmconversionoptions_set_maxDepth(this.__wbg_ptr, isLikeNone(value) ? 0x100000001 : (value) >>> 0);
|
|
584
|
+
}
|
|
543
585
|
/**
|
|
544
586
|
* @param {bigint} value
|
|
545
587
|
*/
|
|
@@ -1044,6 +1086,13 @@ class WasmConversionOptionsUpdate {
|
|
|
1044
1086
|
const ret = wasm.wasmconversionoptionsupdate_listIndentWidth(this.__wbg_ptr);
|
|
1045
1087
|
return ret === 0x100000001 ? undefined : ret;
|
|
1046
1088
|
}
|
|
1089
|
+
/**
|
|
1090
|
+
* @returns {number | undefined}
|
|
1091
|
+
*/
|
|
1092
|
+
get maxDepth() {
|
|
1093
|
+
const ret = wasm.wasmconversionoptionsupdate_maxDepth(this.__wbg_ptr);
|
|
1094
|
+
return ret === 0x100000001 ? undefined : ret;
|
|
1095
|
+
}
|
|
1047
1096
|
/**
|
|
1048
1097
|
* @returns {bigint | undefined}
|
|
1049
1098
|
*/
|
|
@@ -1097,8 +1146,9 @@ class WasmConversionOptionsUpdate {
|
|
|
1097
1146
|
* @param {bigint | null} [max_image_size]
|
|
1098
1147
|
* @param {boolean | null} [capture_svg]
|
|
1099
1148
|
* @param {boolean | null} [infer_dimensions]
|
|
1149
|
+
* @param {number | null} [max_depth]
|
|
1100
1150
|
*/
|
|
1101
|
-
constructor(heading_style, list_indent_type, list_indent_width, bullets, strong_em_symbol, escape_asterisks, escape_underscores, escape_misc, escape_ascii, code_language, autolinks, default_title, br_in_tables, highlight_style, extract_metadata, whitespace_mode, strip_newlines, wrap, wrap_width, convert_as_inline, sub_symbol, sup_symbol, newline_style, code_block_style, keep_inline_images_in, preprocessing, encoding, debug, strip_tags, preserve_tags, skip_images, link_style, output_format, include_document_structure, extract_images, max_image_size, capture_svg, infer_dimensions) {
|
|
1151
|
+
constructor(heading_style, list_indent_type, list_indent_width, bullets, strong_em_symbol, escape_asterisks, escape_underscores, escape_misc, escape_ascii, code_language, autolinks, default_title, br_in_tables, highlight_style, extract_metadata, whitespace_mode, strip_newlines, wrap, wrap_width, convert_as_inline, sub_symbol, sup_symbol, newline_style, code_block_style, keep_inline_images_in, preprocessing, encoding, debug, strip_tags, preserve_tags, skip_images, link_style, output_format, include_document_structure, extract_images, max_image_size, capture_svg, infer_dimensions, max_depth) {
|
|
1102
1152
|
var ptr0 = isLikeNone(bullets) ? 0 : passStringToWasm0(bullets, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1103
1153
|
var len0 = WASM_VECTOR_LEN;
|
|
1104
1154
|
var ptr1 = isLikeNone(strong_em_symbol) ? 0 : passStringToWasm0(strong_em_symbol, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
@@ -1122,7 +1172,7 @@ class WasmConversionOptionsUpdate {
|
|
|
1122
1172
|
var len8 = WASM_VECTOR_LEN;
|
|
1123
1173
|
var ptr9 = isLikeNone(preserve_tags) ? 0 : passArrayJsValueToWasm0(preserve_tags, wasm.__wbindgen_export);
|
|
1124
1174
|
var len9 = WASM_VECTOR_LEN;
|
|
1125
|
-
const ret = wasm.wasmconversionoptionsupdate_new(isLikeNone(heading_style) ? 3 : heading_style, isLikeNone(list_indent_type) ? 2 : list_indent_type, isLikeNone(list_indent_width) ? 0x100000001 : (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) ? 0x100000001 : (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);
|
|
1175
|
+
const ret = wasm.wasmconversionoptionsupdate_new(isLikeNone(heading_style) ? 3 : heading_style, isLikeNone(list_indent_type) ? 2 : list_indent_type, isLikeNone(list_indent_width) ? 0x100000001 : (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) ? 0x100000001 : (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) ? 0x100000001 : (max_depth) >>> 0);
|
|
1126
1176
|
this.__wbg_ptr = ret >>> 0;
|
|
1127
1177
|
WasmConversionOptionsUpdateFinalization.register(this, this.__wbg_ptr, this);
|
|
1128
1178
|
return this;
|
|
@@ -1319,6 +1369,12 @@ class WasmConversionOptionsUpdate {
|
|
|
1319
1369
|
set listIndentWidth(value) {
|
|
1320
1370
|
wasm.wasmconversionoptionsupdate_set_listIndentWidth(this.__wbg_ptr, isLikeNone(value) ? 0x100000001 : (value) >>> 0);
|
|
1321
1371
|
}
|
|
1372
|
+
/**
|
|
1373
|
+
* @param {number | null} [value]
|
|
1374
|
+
*/
|
|
1375
|
+
set maxDepth(value) {
|
|
1376
|
+
wasm.wasmconversionoptionsupdate_set_maxDepth(this.__wbg_ptr, isLikeNone(value) ? 0x100000001 : (value) >>> 0);
|
|
1377
|
+
}
|
|
1322
1378
|
/**
|
|
1323
1379
|
* @param {bigint | null} [value]
|
|
1324
1380
|
*/
|
|
@@ -3164,6 +3220,14 @@ class WasmMetadataConfig {
|
|
|
3164
3220
|
const ret = wasm.wasmmetadataconfig_anyEnabled(this.__wbg_ptr);
|
|
3165
3221
|
return ret !== 0;
|
|
3166
3222
|
}
|
|
3223
|
+
/**
|
|
3224
|
+
* @param {WasmMetadataConfigUpdate} _update
|
|
3225
|
+
*/
|
|
3226
|
+
applyUpdate(_update) {
|
|
3227
|
+
_assertClass(_update, WasmMetadataConfigUpdate);
|
|
3228
|
+
var ptr0 = _update.__destroy_into_raw();
|
|
3229
|
+
wasm.wasmmetadataconfig_applyUpdate(this.__wbg_ptr, ptr0);
|
|
3230
|
+
}
|
|
3167
3231
|
/**
|
|
3168
3232
|
* @returns {WasmMetadataConfig}
|
|
3169
3233
|
*/
|
|
@@ -3206,6 +3270,26 @@ class WasmMetadataConfig {
|
|
|
3206
3270
|
const ret = wasm.wasmmetadataconfig_extractStructuredData(this.__wbg_ptr);
|
|
3207
3271
|
return ret !== 0;
|
|
3208
3272
|
}
|
|
3273
|
+
/**
|
|
3274
|
+
* @param {WasmMetadataConfigUpdate} update
|
|
3275
|
+
* @returns {WasmMetadataConfig}
|
|
3276
|
+
*/
|
|
3277
|
+
static from(update) {
|
|
3278
|
+
_assertClass(update, WasmMetadataConfigUpdate);
|
|
3279
|
+
var ptr0 = update.__destroy_into_raw();
|
|
3280
|
+
const ret = wasm.wasmmetadataconfig_from(ptr0);
|
|
3281
|
+
return WasmMetadataConfig.__wrap(ret);
|
|
3282
|
+
}
|
|
3283
|
+
/**
|
|
3284
|
+
* @param {WasmMetadataConfigUpdate} update
|
|
3285
|
+
* @returns {WasmMetadataConfig}
|
|
3286
|
+
*/
|
|
3287
|
+
static fromUpdate(update) {
|
|
3288
|
+
_assertClass(update, WasmMetadataConfigUpdate);
|
|
3289
|
+
var ptr0 = update.__destroy_into_raw();
|
|
3290
|
+
const ret = wasm.wasmmetadataconfig_fromUpdate(ptr0);
|
|
3291
|
+
return WasmMetadataConfig.__wrap(ret);
|
|
3292
|
+
}
|
|
3209
3293
|
/**
|
|
3210
3294
|
* @returns {number}
|
|
3211
3295
|
*/
|
|
@@ -3431,6 +3515,14 @@ class WasmPreprocessingOptions {
|
|
|
3431
3515
|
const ptr = this.__destroy_into_raw();
|
|
3432
3516
|
wasm.__wbg_wasmpreprocessingoptions_free(ptr, 0);
|
|
3433
3517
|
}
|
|
3518
|
+
/**
|
|
3519
|
+
* @param {WasmPreprocessingOptionsUpdate} _update
|
|
3520
|
+
*/
|
|
3521
|
+
applyUpdate(_update) {
|
|
3522
|
+
_assertClass(_update, WasmPreprocessingOptionsUpdate);
|
|
3523
|
+
var ptr0 = _update.__destroy_into_raw();
|
|
3524
|
+
wasm.wasmpreprocessingoptions_applyUpdate(this.__wbg_ptr, ptr0);
|
|
3525
|
+
}
|
|
3434
3526
|
/**
|
|
3435
3527
|
* @returns {WasmPreprocessingOptions}
|
|
3436
3528
|
*/
|
|
@@ -3445,6 +3537,26 @@ class WasmPreprocessingOptions {
|
|
|
3445
3537
|
const ret = wasm.wasmpreprocessingoptions_enabled(this.__wbg_ptr);
|
|
3446
3538
|
return ret !== 0;
|
|
3447
3539
|
}
|
|
3540
|
+
/**
|
|
3541
|
+
* @param {WasmPreprocessingOptionsUpdate} update
|
|
3542
|
+
* @returns {WasmPreprocessingOptions}
|
|
3543
|
+
*/
|
|
3544
|
+
static from(update) {
|
|
3545
|
+
_assertClass(update, WasmPreprocessingOptionsUpdate);
|
|
3546
|
+
var ptr0 = update.__destroy_into_raw();
|
|
3547
|
+
const ret = wasm.wasmpreprocessingoptions_from(ptr0);
|
|
3548
|
+
return WasmPreprocessingOptions.__wrap(ret);
|
|
3549
|
+
}
|
|
3550
|
+
/**
|
|
3551
|
+
* @param {WasmPreprocessingOptionsUpdate} update
|
|
3552
|
+
* @returns {WasmPreprocessingOptions}
|
|
3553
|
+
*/
|
|
3554
|
+
static fromUpdate(update) {
|
|
3555
|
+
_assertClass(update, WasmPreprocessingOptionsUpdate);
|
|
3556
|
+
var ptr0 = update.__destroy_into_raw();
|
|
3557
|
+
const ret = wasm.wasmpreprocessingoptions_fromUpdate(ptr0);
|
|
3558
|
+
return WasmPreprocessingOptions.__wrap(ret);
|
|
3559
|
+
}
|
|
3448
3560
|
/**
|
|
3449
3561
|
* @param {boolean | null} [enabled]
|
|
3450
3562
|
* @param {WasmPreprocessingPreset | null} [preset]
|
|
@@ -4060,7 +4172,7 @@ const WasmTextDirection = Object.freeze({
|
|
|
4060
4172
|
exports.WasmTextDirection = WasmTextDirection;
|
|
4061
4173
|
|
|
4062
4174
|
/**
|
|
4063
|
-
* @enum {0 | 1 | 2 | 3 | 4}
|
|
4175
|
+
* @enum {0 | 1 | 2 | 3 | 4 | 5}
|
|
4064
4176
|
*/
|
|
4065
4177
|
const WasmWarningKind = Object.freeze({
|
|
4066
4178
|
ImageExtractionFailed: 0, "0": "ImageExtractionFailed",
|
|
@@ -4068,6 +4180,7 @@ const WasmWarningKind = Object.freeze({
|
|
|
4068
4180
|
TruncatedInput: 2, "2": "TruncatedInput",
|
|
4069
4181
|
MalformedHtml: 3, "3": "MalformedHtml",
|
|
4070
4182
|
SanitizationApplied: 4, "4": "SanitizationApplied",
|
|
4183
|
+
DepthLimitExceeded: 5, "5": "DepthLimitExceeded",
|
|
4071
4184
|
});
|
|
4072
4185
|
exports.WasmWarningKind = WasmWarningKind;
|
|
4073
4186
|
|
|
Binary file
|
|
@@ -21,6 +21,7 @@ export const __wbg_wasmstructureddata_free: (a: number, b: number) => void;
|
|
|
21
21
|
export const __wbg_wasmtabledata_free: (a: number, b: number) => void;
|
|
22
22
|
export const __wbg_wasmtablegrid_free: (a: number, b: number) => void;
|
|
23
23
|
export const convert: (a: number, b: number, c: number, d: number) => void;
|
|
24
|
+
export const wasmconversionoptions_applyUpdate: (a: number, b: number) => void;
|
|
24
25
|
export const wasmconversionoptions_autolinks: (a: number) => number;
|
|
25
26
|
export const wasmconversionoptions_brInTables: (a: number) => number;
|
|
26
27
|
export const wasmconversionoptions_builder: () => number;
|
|
@@ -39,6 +40,8 @@ export const wasmconversionoptions_escapeMisc: (a: number) => number;
|
|
|
39
40
|
export const wasmconversionoptions_escapeUnderscores: (a: number) => number;
|
|
40
41
|
export const wasmconversionoptions_extractImages: (a: number) => number;
|
|
41
42
|
export const wasmconversionoptions_extractMetadata: (a: number) => number;
|
|
43
|
+
export const wasmconversionoptions_from: (a: number) => number;
|
|
44
|
+
export const wasmconversionoptions_fromUpdate: (a: number) => number;
|
|
42
45
|
export const wasmconversionoptions_headingStyle: (a: number) => number;
|
|
43
46
|
export const wasmconversionoptions_highlightStyle: (a: number) => number;
|
|
44
47
|
export const wasmconversionoptions_includeDocumentStructure: (a: number) => number;
|
|
@@ -47,8 +50,9 @@ export const wasmconversionoptions_keepInlineImagesIn: (a: number, b: number) =>
|
|
|
47
50
|
export const wasmconversionoptions_linkStyle: (a: number) => number;
|
|
48
51
|
export const wasmconversionoptions_listIndentType: (a: number) => number;
|
|
49
52
|
export const wasmconversionoptions_listIndentWidth: (a: number) => number;
|
|
53
|
+
export const wasmconversionoptions_maxDepth: (a: number) => number;
|
|
50
54
|
export const wasmconversionoptions_maxImageSize: (a: number) => bigint;
|
|
51
|
-
export const wasmconversionoptions_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number, t: number, u: number, v: number, w: number, x: number, y: number, z: number, a1: number, b1: number, c1: number, d1: number, e1: number, f1: number, g1: number, h1: number, i1: number, j1: number, k1: number, l1: number, m1: number, n1: number, o1: number, p1: number, q1: number, r1: number, s1: number, t1: bigint, u1: number, v1: number) => number;
|
|
55
|
+
export const wasmconversionoptions_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number, t: number, u: number, v: number, w: number, x: number, y: number, z: number, a1: number, b1: number, c1: number, d1: number, e1: number, f1: number, g1: number, h1: number, i1: number, j1: number, k1: number, l1: number, m1: number, n1: number, o1: number, p1: number, q1: number, r1: number, s1: number, t1: bigint, u1: number, v1: number, w1: number) => number;
|
|
52
56
|
export const wasmconversionoptions_newlineStyle: (a: number) => number;
|
|
53
57
|
export const wasmconversionoptions_outputFormat: (a: number) => number;
|
|
54
58
|
export const wasmconversionoptions_preprocessing: (a: number) => number;
|
|
@@ -77,6 +81,7 @@ export const wasmconversionoptions_set_keepInlineImagesIn: (a: number, b: number
|
|
|
77
81
|
export const wasmconversionoptions_set_linkStyle: (a: number, b: number) => void;
|
|
78
82
|
export const wasmconversionoptions_set_listIndentType: (a: number, b: number) => void;
|
|
79
83
|
export const wasmconversionoptions_set_listIndentWidth: (a: number, b: number) => void;
|
|
84
|
+
export const wasmconversionoptions_set_maxDepth: (a: number, b: number) => void;
|
|
80
85
|
export const wasmconversionoptions_set_maxImageSize: (a: number, b: bigint) => void;
|
|
81
86
|
export const wasmconversionoptions_set_newlineStyle: (a: number, b: number) => void;
|
|
82
87
|
export const wasmconversionoptions_set_outputFormat: (a: number, b: number) => void;
|
|
@@ -129,8 +134,9 @@ export const wasmconversionoptionsupdate_keepInlineImagesIn: (a: number, b: numb
|
|
|
129
134
|
export const wasmconversionoptionsupdate_linkStyle: (a: number) => number;
|
|
130
135
|
export const wasmconversionoptionsupdate_listIndentType: (a: number) => number;
|
|
131
136
|
export const wasmconversionoptionsupdate_listIndentWidth: (a: number) => number;
|
|
137
|
+
export const wasmconversionoptionsupdate_maxDepth: (a: number) => number;
|
|
132
138
|
export const wasmconversionoptionsupdate_maxImageSize: (a: number, b: number) => void;
|
|
133
|
-
export const wasmconversionoptionsupdate_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number, t: number, u: number, v: number, w: number, x: number, y: number, z: number, a1: number, b1: number, c1: number, d1: number, e1: number, f1: number, g1: number, h1: number, i1: number, j1: number, k1: number, l1: number, m1: number, n1: number, o1: number, p1: number, q1: number, r1: number, s1: number, t1: bigint, u1: number, v1: number) => number;
|
|
139
|
+
export const wasmconversionoptionsupdate_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number, t: number, u: number, v: number, w: number, x: number, y: number, z: number, a1: number, b1: number, c1: number, d1: number, e1: number, f1: number, g1: number, h1: number, i1: number, j1: number, k1: number, l1: number, m1: number, n1: number, o1: number, p1: number, q1: number, r1: number, s1: number, t1: bigint, u1: number, v1: number, w1: number) => number;
|
|
134
140
|
export const wasmconversionoptionsupdate_newlineStyle: (a: number) => number;
|
|
135
141
|
export const wasmconversionoptionsupdate_outputFormat: (a: number) => number;
|
|
136
142
|
export const wasmconversionoptionsupdate_preprocessing: (a: number) => number;
|
|
@@ -159,6 +165,7 @@ export const wasmconversionoptionsupdate_set_keepInlineImagesIn: (a: number, b:
|
|
|
159
165
|
export const wasmconversionoptionsupdate_set_linkStyle: (a: number, b: number) => void;
|
|
160
166
|
export const wasmconversionoptionsupdate_set_listIndentType: (a: number, b: number) => void;
|
|
161
167
|
export const wasmconversionoptionsupdate_set_listIndentWidth: (a: number, b: number) => void;
|
|
168
|
+
export const wasmconversionoptionsupdate_set_maxDepth: (a: number, b: number) => void;
|
|
162
169
|
export const wasmconversionoptionsupdate_set_maxImageSize: (a: number, b: number, c: bigint) => void;
|
|
163
170
|
export const wasmconversionoptionsupdate_set_newlineStyle: (a: number, b: number) => void;
|
|
164
171
|
export const wasmconversionoptionsupdate_set_outputFormat: (a: number, b: number) => void;
|
|
@@ -298,12 +305,14 @@ export const wasmlinkmetadata_set_title: (a: number, b: number, c: number) => vo
|
|
|
298
305
|
export const wasmlinkmetadata_text: (a: number, b: number) => void;
|
|
299
306
|
export const wasmlinkmetadata_title: (a: number, b: number) => void;
|
|
300
307
|
export const wasmmetadataconfig_anyEnabled: (a: number) => number;
|
|
308
|
+
export const wasmmetadataconfig_applyUpdate: (a: number, b: number) => void;
|
|
301
309
|
export const wasmmetadataconfig_default: () => number;
|
|
302
310
|
export const wasmmetadataconfig_extractDocument: (a: number) => number;
|
|
303
311
|
export const wasmmetadataconfig_extractHeaders: (a: number) => number;
|
|
304
312
|
export const wasmmetadataconfig_extractImages: (a: number) => number;
|
|
305
313
|
export const wasmmetadataconfig_extractLinks: (a: number) => number;
|
|
306
314
|
export const wasmmetadataconfig_extractStructuredData: (a: number) => number;
|
|
315
|
+
export const wasmmetadataconfig_from: (a: number) => number;
|
|
307
316
|
export const wasmmetadataconfig_maxStructuredDataSize: (a: number) => number;
|
|
308
317
|
export const wasmmetadataconfig_new: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
309
318
|
export const wasmmetadataconfig_set_extractDocument: (a: number, b: number) => void;
|
|
@@ -323,8 +332,10 @@ export const wasmmetadataconfigupdate_set_extractHeaders: (a: number, b: number)
|
|
|
323
332
|
export const wasmmetadataconfigupdate_set_extractImages: (a: number, b: number) => void;
|
|
324
333
|
export const wasmmetadataconfigupdate_set_extractLinks: (a: number, b: number) => void;
|
|
325
334
|
export const wasmmetadataconfigupdate_set_extractStructuredData: (a: number, b: number) => void;
|
|
335
|
+
export const wasmpreprocessingoptions_applyUpdate: (a: number, b: number) => void;
|
|
326
336
|
export const wasmpreprocessingoptions_default: () => number;
|
|
327
337
|
export const wasmpreprocessingoptions_enabled: (a: number) => number;
|
|
338
|
+
export const wasmpreprocessingoptions_from: (a: number) => number;
|
|
328
339
|
export const wasmpreprocessingoptions_new: (a: number, b: number, c: number, d: number) => number;
|
|
329
340
|
export const wasmpreprocessingoptions_preset: (a: number) => number;
|
|
330
341
|
export const wasmpreprocessingoptions_removeForms: (a: number) => number;
|
|
@@ -367,6 +378,8 @@ export const wasmtextannotation_kind: (a: number) => number;
|
|
|
367
378
|
export const wasmtextannotation_new: (a: number, b: number, c: number) => number;
|
|
368
379
|
export const wasmtextannotation_set_end: (a: number, b: number) => void;
|
|
369
380
|
export const wasmtextannotation_set_kind: (a: number, b: number) => void;
|
|
381
|
+
export const wasmpreprocessingoptions_fromUpdate: (a: number) => number;
|
|
382
|
+
export const wasmmetadataconfig_fromUpdate: (a: number) => number;
|
|
370
383
|
export const wasmheadermetadata_set_depth: (a: number, b: number) => void;
|
|
371
384
|
export const wasmtablegrid_set_cols: (a: number, b: number) => void;
|
|
372
385
|
export const wasmtablegrid_set_rows: (a: number, b: number) => void;
|
|
@@ -377,8 +390,8 @@ export const wasmtablegrid_cols: (a: number) => number;
|
|
|
377
390
|
export const wasmtablegrid_rows: (a: number) => number;
|
|
378
391
|
export const wasmtextannotation_start: (a: number) => number;
|
|
379
392
|
export const wasmmetadataconfigupdate_maxStructuredDataSize: (a: number) => number;
|
|
380
|
-
export const __wbg_wasmpreprocessingoptionsupdate_free: (a: number, b: number) => void;
|
|
381
393
|
export const __wbg_wasmtextannotation_free: (a: number, b: number) => void;
|
|
394
|
+
export const __wbg_wasmpreprocessingoptionsupdate_free: (a: number, b: number) => void;
|
|
382
395
|
export const __wbindgen_export: (a: number, b: number) => number;
|
|
383
396
|
export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
384
397
|
export const __wbindgen_add_to_stack_pointer: (a: number) => number;
|
package/dist-node/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "html-to-markdown-wasm",
|
|
3
3
|
"description": "High-performance HTML to Markdown converter",
|
|
4
|
-
"version": "3.2.
|
|
4
|
+
"version": "3.2.6",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -13,5 +13,10 @@
|
|
|
13
13
|
"*.d.ts"
|
|
14
14
|
],
|
|
15
15
|
"main": "html_to_markdown_wasm.js",
|
|
16
|
-
"types": "html_to_markdown_wasm.d.ts"
|
|
16
|
+
"types": "html_to_markdown_wasm.d.ts",
|
|
17
|
+
"keywords": [
|
|
18
|
+
"html",
|
|
19
|
+
"markdown",
|
|
20
|
+
"converter"
|
|
21
|
+
]
|
|
17
22
|
}
|
|
@@ -22,9 +22,12 @@ export enum WasmCodeBlockStyle {
|
|
|
22
22
|
export class WasmConversionOptions {
|
|
23
23
|
free(): void;
|
|
24
24
|
[Symbol.dispose](): void;
|
|
25
|
+
applyUpdate(_update: WasmConversionOptionsUpdate): void;
|
|
25
26
|
static builder(): WasmConversionOptionsBuilder;
|
|
26
27
|
static default(): WasmConversionOptions;
|
|
27
|
-
|
|
28
|
+
static from(update: WasmConversionOptionsUpdate): WasmConversionOptions;
|
|
29
|
+
static fromUpdate(update: WasmConversionOptionsUpdate): WasmConversionOptions;
|
|
30
|
+
constructor(heading_style?: WasmHeadingStyle | null, list_indent_type?: WasmListIndentType | null, list_indent_width?: number | null, bullets?: string | null, strong_em_symbol?: string | null, escape_asterisks?: boolean | null, escape_underscores?: boolean | null, escape_misc?: boolean | null, escape_ascii?: boolean | null, code_language?: string | null, autolinks?: boolean | null, default_title?: boolean | null, br_in_tables?: boolean | null, highlight_style?: WasmHighlightStyle | null, extract_metadata?: boolean | null, whitespace_mode?: WasmWhitespaceMode | null, strip_newlines?: boolean | null, wrap?: boolean | null, wrap_width?: number | null, convert_as_inline?: boolean | null, sub_symbol?: string | null, sup_symbol?: string | null, newline_style?: WasmNewlineStyle | null, code_block_style?: WasmCodeBlockStyle | null, keep_inline_images_in?: string[] | null, preprocessing?: WasmPreprocessingOptions | null, encoding?: string | null, debug?: boolean | null, strip_tags?: string[] | null, preserve_tags?: string[] | null, skip_images?: boolean | null, link_style?: WasmLinkStyle | null, output_format?: WasmOutputFormat | null, include_document_structure?: boolean | null, extract_images?: boolean | null, max_image_size?: bigint | null, capture_svg?: boolean | null, infer_dimensions?: boolean | null, max_depth?: number | null);
|
|
28
31
|
autolinks: boolean;
|
|
29
32
|
brInTables: boolean;
|
|
30
33
|
bullets: string;
|
|
@@ -49,6 +52,8 @@ export class WasmConversionOptions {
|
|
|
49
52
|
linkStyle: WasmLinkStyle;
|
|
50
53
|
listIndentType: WasmListIndentType;
|
|
51
54
|
listIndentWidth: number;
|
|
55
|
+
get maxDepth(): number | undefined;
|
|
56
|
+
set maxDepth(value: number | null | undefined);
|
|
52
57
|
maxImageSize: bigint;
|
|
53
58
|
newlineStyle: WasmNewlineStyle;
|
|
54
59
|
outputFormat: WasmOutputFormat;
|
|
@@ -79,7 +84,7 @@ export class WasmConversionOptionsBuilder {
|
|
|
79
84
|
export class WasmConversionOptionsUpdate {
|
|
80
85
|
free(): void;
|
|
81
86
|
[Symbol.dispose](): void;
|
|
82
|
-
constructor(heading_style?: WasmHeadingStyle | null, list_indent_type?: WasmListIndentType | null, list_indent_width?: number | null, bullets?: string | null, strong_em_symbol?: string | null, escape_asterisks?: boolean | null, escape_underscores?: boolean | null, escape_misc?: boolean | null, escape_ascii?: boolean | null, code_language?: string | null, autolinks?: boolean | null, default_title?: boolean | null, br_in_tables?: boolean | null, highlight_style?: WasmHighlightStyle | null, extract_metadata?: boolean | null, whitespace_mode?: WasmWhitespaceMode | null, strip_newlines?: boolean | null, wrap?: boolean | null, wrap_width?: number | null, convert_as_inline?: boolean | null, sub_symbol?: string | null, sup_symbol?: string | null, newline_style?: WasmNewlineStyle | null, code_block_style?: WasmCodeBlockStyle | null, keep_inline_images_in?: string[] | null, preprocessing?: WasmPreprocessingOptionsUpdate | null, encoding?: string | null, debug?: boolean | null, strip_tags?: string[] | null, preserve_tags?: string[] | null, skip_images?: boolean | null, link_style?: WasmLinkStyle | null, output_format?: WasmOutputFormat | null, include_document_structure?: boolean | null, extract_images?: boolean | null, max_image_size?: bigint | null, capture_svg?: boolean | null, infer_dimensions?: boolean | null);
|
|
87
|
+
constructor(heading_style?: WasmHeadingStyle | null, list_indent_type?: WasmListIndentType | null, list_indent_width?: number | null, bullets?: string | null, strong_em_symbol?: string | null, escape_asterisks?: boolean | null, escape_underscores?: boolean | null, escape_misc?: boolean | null, escape_ascii?: boolean | null, code_language?: string | null, autolinks?: boolean | null, default_title?: boolean | null, br_in_tables?: boolean | null, highlight_style?: WasmHighlightStyle | null, extract_metadata?: boolean | null, whitespace_mode?: WasmWhitespaceMode | null, strip_newlines?: boolean | null, wrap?: boolean | null, wrap_width?: number | null, convert_as_inline?: boolean | null, sub_symbol?: string | null, sup_symbol?: string | null, newline_style?: WasmNewlineStyle | null, code_block_style?: WasmCodeBlockStyle | null, keep_inline_images_in?: string[] | null, preprocessing?: WasmPreprocessingOptionsUpdate | null, encoding?: string | null, debug?: boolean | null, strip_tags?: string[] | null, preserve_tags?: string[] | null, skip_images?: boolean | null, link_style?: WasmLinkStyle | null, output_format?: WasmOutputFormat | null, include_document_structure?: boolean | null, extract_images?: boolean | null, max_image_size?: bigint | null, capture_svg?: boolean | null, infer_dimensions?: boolean | null, max_depth?: number | null);
|
|
83
88
|
get autolinks(): boolean | undefined;
|
|
84
89
|
set autolinks(value: boolean | null | undefined);
|
|
85
90
|
get brInTables(): boolean | undefined;
|
|
@@ -128,6 +133,8 @@ export class WasmConversionOptionsUpdate {
|
|
|
128
133
|
set listIndentType(value: WasmListIndentType | null | undefined);
|
|
129
134
|
get listIndentWidth(): number | undefined;
|
|
130
135
|
set listIndentWidth(value: number | null | undefined);
|
|
136
|
+
get maxDepth(): number | undefined;
|
|
137
|
+
set maxDepth(value: number | null | undefined);
|
|
131
138
|
get maxImageSize(): bigint | undefined;
|
|
132
139
|
set maxImageSize(value: bigint | null | undefined);
|
|
133
140
|
get newlineStyle(): WasmNewlineStyle | undefined;
|
|
@@ -327,7 +334,10 @@ export class WasmMetadataConfig {
|
|
|
327
334
|
free(): void;
|
|
328
335
|
[Symbol.dispose](): void;
|
|
329
336
|
anyEnabled(): boolean;
|
|
337
|
+
applyUpdate(_update: WasmMetadataConfigUpdate): void;
|
|
330
338
|
static default(): WasmMetadataConfig;
|
|
339
|
+
static from(update: WasmMetadataConfigUpdate): WasmMetadataConfig;
|
|
340
|
+
static fromUpdate(update: WasmMetadataConfigUpdate): WasmMetadataConfig;
|
|
331
341
|
constructor(extract_document?: boolean | null, extract_headers?: boolean | null, extract_links?: boolean | null, extract_images?: boolean | null, extract_structured_data?: boolean | null, max_structured_data_size?: number | null);
|
|
332
342
|
extractDocument: boolean;
|
|
333
343
|
extractHeaders: boolean;
|
|
@@ -385,7 +395,10 @@ export enum WasmOutputFormat {
|
|
|
385
395
|
export class WasmPreprocessingOptions {
|
|
386
396
|
free(): void;
|
|
387
397
|
[Symbol.dispose](): void;
|
|
398
|
+
applyUpdate(_update: WasmPreprocessingOptionsUpdate): void;
|
|
388
399
|
static default(): WasmPreprocessingOptions;
|
|
400
|
+
static from(update: WasmPreprocessingOptionsUpdate): WasmPreprocessingOptions;
|
|
401
|
+
static fromUpdate(update: WasmPreprocessingOptionsUpdate): WasmPreprocessingOptions;
|
|
389
402
|
constructor(enabled?: boolean | null, preset?: WasmPreprocessingPreset | null, remove_navigation?: boolean | null, remove_forms?: boolean | null);
|
|
390
403
|
enabled: boolean;
|
|
391
404
|
preset: WasmPreprocessingPreset;
|
|
@@ -475,6 +488,7 @@ export enum WasmWarningKind {
|
|
|
475
488
|
TruncatedInput = 2,
|
|
476
489
|
MalformedHtml = 3,
|
|
477
490
|
SanitizationApplied = 4,
|
|
491
|
+
DepthLimitExceeded = 5,
|
|
478
492
|
}
|
|
479
493
|
|
|
480
494
|
export enum WasmWhitespaceMode {
|
|
@@ -508,6 +522,7 @@ export interface InitOutput {
|
|
|
508
522
|
readonly __wbg_wasmtabledata_free: (a: number, b: number) => void;
|
|
509
523
|
readonly __wbg_wasmtablegrid_free: (a: number, b: number) => void;
|
|
510
524
|
readonly convert: (a: number, b: number, c: number, d: number) => void;
|
|
525
|
+
readonly wasmconversionoptions_applyUpdate: (a: number, b: number) => void;
|
|
511
526
|
readonly wasmconversionoptions_autolinks: (a: number) => number;
|
|
512
527
|
readonly wasmconversionoptions_brInTables: (a: number) => number;
|
|
513
528
|
readonly wasmconversionoptions_builder: () => number;
|
|
@@ -526,6 +541,8 @@ export interface InitOutput {
|
|
|
526
541
|
readonly wasmconversionoptions_escapeUnderscores: (a: number) => number;
|
|
527
542
|
readonly wasmconversionoptions_extractImages: (a: number) => number;
|
|
528
543
|
readonly wasmconversionoptions_extractMetadata: (a: number) => number;
|
|
544
|
+
readonly wasmconversionoptions_from: (a: number) => number;
|
|
545
|
+
readonly wasmconversionoptions_fromUpdate: (a: number) => number;
|
|
529
546
|
readonly wasmconversionoptions_headingStyle: (a: number) => number;
|
|
530
547
|
readonly wasmconversionoptions_highlightStyle: (a: number) => number;
|
|
531
548
|
readonly wasmconversionoptions_includeDocumentStructure: (a: number) => number;
|
|
@@ -534,8 +551,9 @@ export interface InitOutput {
|
|
|
534
551
|
readonly wasmconversionoptions_linkStyle: (a: number) => number;
|
|
535
552
|
readonly wasmconversionoptions_listIndentType: (a: number) => number;
|
|
536
553
|
readonly wasmconversionoptions_listIndentWidth: (a: number) => number;
|
|
554
|
+
readonly wasmconversionoptions_maxDepth: (a: number) => number;
|
|
537
555
|
readonly wasmconversionoptions_maxImageSize: (a: number) => bigint;
|
|
538
|
-
readonly wasmconversionoptions_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number, t: number, u: number, v: number, w: number, x: number, y: number, z: number, a1: number, b1: number, c1: number, d1: number, e1: number, f1: number, g1: number, h1: number, i1: number, j1: number, k1: number, l1: number, m1: number, n1: number, o1: number, p1: number, q1: number, r1: number, s1: number, t1: bigint, u1: number, v1: number) => number;
|
|
556
|
+
readonly wasmconversionoptions_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number, t: number, u: number, v: number, w: number, x: number, y: number, z: number, a1: number, b1: number, c1: number, d1: number, e1: number, f1: number, g1: number, h1: number, i1: number, j1: number, k1: number, l1: number, m1: number, n1: number, o1: number, p1: number, q1: number, r1: number, s1: number, t1: bigint, u1: number, v1: number, w1: number) => number;
|
|
539
557
|
readonly wasmconversionoptions_newlineStyle: (a: number) => number;
|
|
540
558
|
readonly wasmconversionoptions_outputFormat: (a: number) => number;
|
|
541
559
|
readonly wasmconversionoptions_preprocessing: (a: number) => number;
|
|
@@ -564,6 +582,7 @@ export interface InitOutput {
|
|
|
564
582
|
readonly wasmconversionoptions_set_linkStyle: (a: number, b: number) => void;
|
|
565
583
|
readonly wasmconversionoptions_set_listIndentType: (a: number, b: number) => void;
|
|
566
584
|
readonly wasmconversionoptions_set_listIndentWidth: (a: number, b: number) => void;
|
|
585
|
+
readonly wasmconversionoptions_set_maxDepth: (a: number, b: number) => void;
|
|
567
586
|
readonly wasmconversionoptions_set_maxImageSize: (a: number, b: bigint) => void;
|
|
568
587
|
readonly wasmconversionoptions_set_newlineStyle: (a: number, b: number) => void;
|
|
569
588
|
readonly wasmconversionoptions_set_outputFormat: (a: number, b: number) => void;
|
|
@@ -616,8 +635,9 @@ export interface InitOutput {
|
|
|
616
635
|
readonly wasmconversionoptionsupdate_linkStyle: (a: number) => number;
|
|
617
636
|
readonly wasmconversionoptionsupdate_listIndentType: (a: number) => number;
|
|
618
637
|
readonly wasmconversionoptionsupdate_listIndentWidth: (a: number) => number;
|
|
638
|
+
readonly wasmconversionoptionsupdate_maxDepth: (a: number) => number;
|
|
619
639
|
readonly wasmconversionoptionsupdate_maxImageSize: (a: number, b: number) => void;
|
|
620
|
-
readonly wasmconversionoptionsupdate_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number, t: number, u: number, v: number, w: number, x: number, y: number, z: number, a1: number, b1: number, c1: number, d1: number, e1: number, f1: number, g1: number, h1: number, i1: number, j1: number, k1: number, l1: number, m1: number, n1: number, o1: number, p1: number, q1: number, r1: number, s1: number, t1: bigint, u1: number, v1: number) => number;
|
|
640
|
+
readonly wasmconversionoptionsupdate_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number, t: number, u: number, v: number, w: number, x: number, y: number, z: number, a1: number, b1: number, c1: number, d1: number, e1: number, f1: number, g1: number, h1: number, i1: number, j1: number, k1: number, l1: number, m1: number, n1: number, o1: number, p1: number, q1: number, r1: number, s1: number, t1: bigint, u1: number, v1: number, w1: number) => number;
|
|
621
641
|
readonly wasmconversionoptionsupdate_newlineStyle: (a: number) => number;
|
|
622
642
|
readonly wasmconversionoptionsupdate_outputFormat: (a: number) => number;
|
|
623
643
|
readonly wasmconversionoptionsupdate_preprocessing: (a: number) => number;
|
|
@@ -646,6 +666,7 @@ export interface InitOutput {
|
|
|
646
666
|
readonly wasmconversionoptionsupdate_set_linkStyle: (a: number, b: number) => void;
|
|
647
667
|
readonly wasmconversionoptionsupdate_set_listIndentType: (a: number, b: number) => void;
|
|
648
668
|
readonly wasmconversionoptionsupdate_set_listIndentWidth: (a: number, b: number) => void;
|
|
669
|
+
readonly wasmconversionoptionsupdate_set_maxDepth: (a: number, b: number) => void;
|
|
649
670
|
readonly wasmconversionoptionsupdate_set_maxImageSize: (a: number, b: number, c: bigint) => void;
|
|
650
671
|
readonly wasmconversionoptionsupdate_set_newlineStyle: (a: number, b: number) => void;
|
|
651
672
|
readonly wasmconversionoptionsupdate_set_outputFormat: (a: number, b: number) => void;
|
|
@@ -785,12 +806,14 @@ export interface InitOutput {
|
|
|
785
806
|
readonly wasmlinkmetadata_text: (a: number, b: number) => void;
|
|
786
807
|
readonly wasmlinkmetadata_title: (a: number, b: number) => void;
|
|
787
808
|
readonly wasmmetadataconfig_anyEnabled: (a: number) => number;
|
|
809
|
+
readonly wasmmetadataconfig_applyUpdate: (a: number, b: number) => void;
|
|
788
810
|
readonly wasmmetadataconfig_default: () => number;
|
|
789
811
|
readonly wasmmetadataconfig_extractDocument: (a: number) => number;
|
|
790
812
|
readonly wasmmetadataconfig_extractHeaders: (a: number) => number;
|
|
791
813
|
readonly wasmmetadataconfig_extractImages: (a: number) => number;
|
|
792
814
|
readonly wasmmetadataconfig_extractLinks: (a: number) => number;
|
|
793
815
|
readonly wasmmetadataconfig_extractStructuredData: (a: number) => number;
|
|
816
|
+
readonly wasmmetadataconfig_from: (a: number) => number;
|
|
794
817
|
readonly wasmmetadataconfig_maxStructuredDataSize: (a: number) => number;
|
|
795
818
|
readonly wasmmetadataconfig_new: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
796
819
|
readonly wasmmetadataconfig_set_extractDocument: (a: number, b: number) => void;
|
|
@@ -810,8 +833,10 @@ export interface InitOutput {
|
|
|
810
833
|
readonly wasmmetadataconfigupdate_set_extractImages: (a: number, b: number) => void;
|
|
811
834
|
readonly wasmmetadataconfigupdate_set_extractLinks: (a: number, b: number) => void;
|
|
812
835
|
readonly wasmmetadataconfigupdate_set_extractStructuredData: (a: number, b: number) => void;
|
|
836
|
+
readonly wasmpreprocessingoptions_applyUpdate: (a: number, b: number) => void;
|
|
813
837
|
readonly wasmpreprocessingoptions_default: () => number;
|
|
814
838
|
readonly wasmpreprocessingoptions_enabled: (a: number) => number;
|
|
839
|
+
readonly wasmpreprocessingoptions_from: (a: number) => number;
|
|
815
840
|
readonly wasmpreprocessingoptions_new: (a: number, b: number, c: number, d: number) => number;
|
|
816
841
|
readonly wasmpreprocessingoptions_preset: (a: number) => number;
|
|
817
842
|
readonly wasmpreprocessingoptions_removeForms: (a: number) => number;
|
|
@@ -854,6 +879,8 @@ export interface InitOutput {
|
|
|
854
879
|
readonly wasmtextannotation_new: (a: number, b: number, c: number) => number;
|
|
855
880
|
readonly wasmtextannotation_set_end: (a: number, b: number) => void;
|
|
856
881
|
readonly wasmtextannotation_set_kind: (a: number, b: number) => void;
|
|
882
|
+
readonly wasmpreprocessingoptions_fromUpdate: (a: number) => number;
|
|
883
|
+
readonly wasmmetadataconfig_fromUpdate: (a: number) => number;
|
|
857
884
|
readonly wasmheadermetadata_set_depth: (a: number, b: number) => void;
|
|
858
885
|
readonly wasmtablegrid_set_cols: (a: number, b: number) => void;
|
|
859
886
|
readonly wasmtablegrid_set_rows: (a: number, b: number) => void;
|
|
@@ -864,8 +891,8 @@ export interface InitOutput {
|
|
|
864
891
|
readonly wasmtablegrid_rows: (a: number) => number;
|
|
865
892
|
readonly wasmtextannotation_start: (a: number) => number;
|
|
866
893
|
readonly wasmmetadataconfigupdate_maxStructuredDataSize: (a: number) => number;
|
|
867
|
-
readonly __wbg_wasmpreprocessingoptionsupdate_free: (a: number, b: number) => void;
|
|
868
894
|
readonly __wbg_wasmtextannotation_free: (a: number, b: number) => void;
|
|
895
|
+
readonly __wbg_wasmpreprocessingoptionsupdate_free: (a: number, b: number) => void;
|
|
869
896
|
readonly __wbindgen_export: (a: number, b: number) => number;
|
|
870
897
|
readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
871
898
|
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
|