@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
|
@@ -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 {
|
|
@@ -40,6 +40,14 @@ export class WasmConversionOptions {
|
|
|
40
40
|
const ptr = this.__destroy_into_raw();
|
|
41
41
|
wasm.__wbg_wasmconversionoptions_free(ptr, 0);
|
|
42
42
|
}
|
|
43
|
+
/**
|
|
44
|
+
* @param {WasmConversionOptionsUpdate} _update
|
|
45
|
+
*/
|
|
46
|
+
applyUpdate(_update) {
|
|
47
|
+
_assertClass(_update, WasmConversionOptionsUpdate);
|
|
48
|
+
var ptr0 = _update.__destroy_into_raw();
|
|
49
|
+
wasm.wasmconversionoptions_applyUpdate(this.__wbg_ptr, ptr0);
|
|
50
|
+
}
|
|
43
51
|
/**
|
|
44
52
|
* @returns {boolean}
|
|
45
53
|
*/
|
|
@@ -202,6 +210,26 @@ export class WasmConversionOptions {
|
|
|
202
210
|
const ret = wasm.wasmconversionoptions_extractMetadata(this.__wbg_ptr);
|
|
203
211
|
return ret !== 0;
|
|
204
212
|
}
|
|
213
|
+
/**
|
|
214
|
+
* @param {WasmConversionOptionsUpdate} update
|
|
215
|
+
* @returns {WasmConversionOptions}
|
|
216
|
+
*/
|
|
217
|
+
static from(update) {
|
|
218
|
+
_assertClass(update, WasmConversionOptionsUpdate);
|
|
219
|
+
var ptr0 = update.__destroy_into_raw();
|
|
220
|
+
const ret = wasm.wasmconversionoptions_from(ptr0);
|
|
221
|
+
return WasmConversionOptions.__wrap(ret);
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* @param {WasmConversionOptionsUpdate} update
|
|
225
|
+
* @returns {WasmConversionOptions}
|
|
226
|
+
*/
|
|
227
|
+
static fromUpdate(update) {
|
|
228
|
+
_assertClass(update, WasmConversionOptionsUpdate);
|
|
229
|
+
var ptr0 = update.__destroy_into_raw();
|
|
230
|
+
const ret = wasm.wasmconversionoptions_fromUpdate(ptr0);
|
|
231
|
+
return WasmConversionOptions.__wrap(ret);
|
|
232
|
+
}
|
|
205
233
|
/**
|
|
206
234
|
* @returns {WasmHeadingStyle}
|
|
207
235
|
*/
|
|
@@ -267,6 +295,13 @@ export class WasmConversionOptions {
|
|
|
267
295
|
const ret = wasm.wasmconversionoptions_listIndentWidth(this.__wbg_ptr);
|
|
268
296
|
return ret >>> 0;
|
|
269
297
|
}
|
|
298
|
+
/**
|
|
299
|
+
* @returns {number | undefined}
|
|
300
|
+
*/
|
|
301
|
+
get maxDepth() {
|
|
302
|
+
const ret = wasm.wasmconversionoptions_maxDepth(this.__wbg_ptr);
|
|
303
|
+
return ret === 0x100000001 ? undefined : ret;
|
|
304
|
+
}
|
|
270
305
|
/**
|
|
271
306
|
* @returns {bigint}
|
|
272
307
|
*/
|
|
@@ -313,8 +348,9 @@ export class WasmConversionOptions {
|
|
|
313
348
|
* @param {bigint | null} [max_image_size]
|
|
314
349
|
* @param {boolean | null} [capture_svg]
|
|
315
350
|
* @param {boolean | null} [infer_dimensions]
|
|
351
|
+
* @param {number | null} [max_depth]
|
|
316
352
|
*/
|
|
317
|
-
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) {
|
|
353
|
+
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) {
|
|
318
354
|
var ptr0 = isLikeNone(bullets) ? 0 : passStringToWasm0(bullets, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
319
355
|
var len0 = WASM_VECTOR_LEN;
|
|
320
356
|
var ptr1 = isLikeNone(strong_em_symbol) ? 0 : passStringToWasm0(strong_em_symbol, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
@@ -338,7 +374,7 @@ export class WasmConversionOptions {
|
|
|
338
374
|
var len8 = WASM_VECTOR_LEN;
|
|
339
375
|
var ptr9 = isLikeNone(preserve_tags) ? 0 : passArrayJsValueToWasm0(preserve_tags, wasm.__wbindgen_export);
|
|
340
376
|
var len9 = WASM_VECTOR_LEN;
|
|
341
|
-
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);
|
|
377
|
+
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);
|
|
342
378
|
this.__wbg_ptr = ret >>> 0;
|
|
343
379
|
WasmConversionOptionsFinalization.register(this, this.__wbg_ptr, this);
|
|
344
380
|
return this;
|
|
@@ -532,6 +568,12 @@ export class WasmConversionOptions {
|
|
|
532
568
|
set listIndentWidth(value) {
|
|
533
569
|
wasm.wasmconversionoptions_set_listIndentWidth(this.__wbg_ptr, value);
|
|
534
570
|
}
|
|
571
|
+
/**
|
|
572
|
+
* @param {number | null} [value]
|
|
573
|
+
*/
|
|
574
|
+
set maxDepth(value) {
|
|
575
|
+
wasm.wasmconversionoptions_set_maxDepth(this.__wbg_ptr, isLikeNone(value) ? 0x100000001 : (value) >>> 0);
|
|
576
|
+
}
|
|
535
577
|
/**
|
|
536
578
|
* @param {bigint} value
|
|
537
579
|
*/
|
|
@@ -1034,6 +1076,13 @@ export class WasmConversionOptionsUpdate {
|
|
|
1034
1076
|
const ret = wasm.wasmconversionoptionsupdate_listIndentWidth(this.__wbg_ptr);
|
|
1035
1077
|
return ret === 0x100000001 ? undefined : ret;
|
|
1036
1078
|
}
|
|
1079
|
+
/**
|
|
1080
|
+
* @returns {number | undefined}
|
|
1081
|
+
*/
|
|
1082
|
+
get maxDepth() {
|
|
1083
|
+
const ret = wasm.wasmconversionoptionsupdate_maxDepth(this.__wbg_ptr);
|
|
1084
|
+
return ret === 0x100000001 ? undefined : ret;
|
|
1085
|
+
}
|
|
1037
1086
|
/**
|
|
1038
1087
|
* @returns {bigint | undefined}
|
|
1039
1088
|
*/
|
|
@@ -1087,8 +1136,9 @@ export class WasmConversionOptionsUpdate {
|
|
|
1087
1136
|
* @param {bigint | null} [max_image_size]
|
|
1088
1137
|
* @param {boolean | null} [capture_svg]
|
|
1089
1138
|
* @param {boolean | null} [infer_dimensions]
|
|
1139
|
+
* @param {number | null} [max_depth]
|
|
1090
1140
|
*/
|
|
1091
|
-
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) {
|
|
1141
|
+
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) {
|
|
1092
1142
|
var ptr0 = isLikeNone(bullets) ? 0 : passStringToWasm0(bullets, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1093
1143
|
var len0 = WASM_VECTOR_LEN;
|
|
1094
1144
|
var ptr1 = isLikeNone(strong_em_symbol) ? 0 : passStringToWasm0(strong_em_symbol, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
@@ -1112,7 +1162,7 @@ export class WasmConversionOptionsUpdate {
|
|
|
1112
1162
|
var len8 = WASM_VECTOR_LEN;
|
|
1113
1163
|
var ptr9 = isLikeNone(preserve_tags) ? 0 : passArrayJsValueToWasm0(preserve_tags, wasm.__wbindgen_export);
|
|
1114
1164
|
var len9 = WASM_VECTOR_LEN;
|
|
1115
|
-
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);
|
|
1165
|
+
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);
|
|
1116
1166
|
this.__wbg_ptr = ret >>> 0;
|
|
1117
1167
|
WasmConversionOptionsUpdateFinalization.register(this, this.__wbg_ptr, this);
|
|
1118
1168
|
return this;
|
|
@@ -1309,6 +1359,12 @@ export class WasmConversionOptionsUpdate {
|
|
|
1309
1359
|
set listIndentWidth(value) {
|
|
1310
1360
|
wasm.wasmconversionoptionsupdate_set_listIndentWidth(this.__wbg_ptr, isLikeNone(value) ? 0x100000001 : (value) >>> 0);
|
|
1311
1361
|
}
|
|
1362
|
+
/**
|
|
1363
|
+
* @param {number | null} [value]
|
|
1364
|
+
*/
|
|
1365
|
+
set maxDepth(value) {
|
|
1366
|
+
wasm.wasmconversionoptionsupdate_set_maxDepth(this.__wbg_ptr, isLikeNone(value) ? 0x100000001 : (value) >>> 0);
|
|
1367
|
+
}
|
|
1312
1368
|
/**
|
|
1313
1369
|
* @param {bigint | null} [value]
|
|
1314
1370
|
*/
|
|
@@ -3138,6 +3194,14 @@ export class WasmMetadataConfig {
|
|
|
3138
3194
|
const ret = wasm.wasmmetadataconfig_anyEnabled(this.__wbg_ptr);
|
|
3139
3195
|
return ret !== 0;
|
|
3140
3196
|
}
|
|
3197
|
+
/**
|
|
3198
|
+
* @param {WasmMetadataConfigUpdate} _update
|
|
3199
|
+
*/
|
|
3200
|
+
applyUpdate(_update) {
|
|
3201
|
+
_assertClass(_update, WasmMetadataConfigUpdate);
|
|
3202
|
+
var ptr0 = _update.__destroy_into_raw();
|
|
3203
|
+
wasm.wasmmetadataconfig_applyUpdate(this.__wbg_ptr, ptr0);
|
|
3204
|
+
}
|
|
3141
3205
|
/**
|
|
3142
3206
|
* @returns {WasmMetadataConfig}
|
|
3143
3207
|
*/
|
|
@@ -3180,6 +3244,26 @@ export class WasmMetadataConfig {
|
|
|
3180
3244
|
const ret = wasm.wasmmetadataconfig_extractStructuredData(this.__wbg_ptr);
|
|
3181
3245
|
return ret !== 0;
|
|
3182
3246
|
}
|
|
3247
|
+
/**
|
|
3248
|
+
* @param {WasmMetadataConfigUpdate} update
|
|
3249
|
+
* @returns {WasmMetadataConfig}
|
|
3250
|
+
*/
|
|
3251
|
+
static from(update) {
|
|
3252
|
+
_assertClass(update, WasmMetadataConfigUpdate);
|
|
3253
|
+
var ptr0 = update.__destroy_into_raw();
|
|
3254
|
+
const ret = wasm.wasmmetadataconfig_from(ptr0);
|
|
3255
|
+
return WasmMetadataConfig.__wrap(ret);
|
|
3256
|
+
}
|
|
3257
|
+
/**
|
|
3258
|
+
* @param {WasmMetadataConfigUpdate} update
|
|
3259
|
+
* @returns {WasmMetadataConfig}
|
|
3260
|
+
*/
|
|
3261
|
+
static fromUpdate(update) {
|
|
3262
|
+
_assertClass(update, WasmMetadataConfigUpdate);
|
|
3263
|
+
var ptr0 = update.__destroy_into_raw();
|
|
3264
|
+
const ret = wasm.wasmmetadataconfig_fromUpdate(ptr0);
|
|
3265
|
+
return WasmMetadataConfig.__wrap(ret);
|
|
3266
|
+
}
|
|
3183
3267
|
/**
|
|
3184
3268
|
* @returns {number}
|
|
3185
3269
|
*/
|
|
@@ -3400,6 +3484,14 @@ export class WasmPreprocessingOptions {
|
|
|
3400
3484
|
const ptr = this.__destroy_into_raw();
|
|
3401
3485
|
wasm.__wbg_wasmpreprocessingoptions_free(ptr, 0);
|
|
3402
3486
|
}
|
|
3487
|
+
/**
|
|
3488
|
+
* @param {WasmPreprocessingOptionsUpdate} _update
|
|
3489
|
+
*/
|
|
3490
|
+
applyUpdate(_update) {
|
|
3491
|
+
_assertClass(_update, WasmPreprocessingOptionsUpdate);
|
|
3492
|
+
var ptr0 = _update.__destroy_into_raw();
|
|
3493
|
+
wasm.wasmpreprocessingoptions_applyUpdate(this.__wbg_ptr, ptr0);
|
|
3494
|
+
}
|
|
3403
3495
|
/**
|
|
3404
3496
|
* @returns {WasmPreprocessingOptions}
|
|
3405
3497
|
*/
|
|
@@ -3414,6 +3506,26 @@ export class WasmPreprocessingOptions {
|
|
|
3414
3506
|
const ret = wasm.wasmpreprocessingoptions_enabled(this.__wbg_ptr);
|
|
3415
3507
|
return ret !== 0;
|
|
3416
3508
|
}
|
|
3509
|
+
/**
|
|
3510
|
+
* @param {WasmPreprocessingOptionsUpdate} update
|
|
3511
|
+
* @returns {WasmPreprocessingOptions}
|
|
3512
|
+
*/
|
|
3513
|
+
static from(update) {
|
|
3514
|
+
_assertClass(update, WasmPreprocessingOptionsUpdate);
|
|
3515
|
+
var ptr0 = update.__destroy_into_raw();
|
|
3516
|
+
const ret = wasm.wasmpreprocessingoptions_from(ptr0);
|
|
3517
|
+
return WasmPreprocessingOptions.__wrap(ret);
|
|
3518
|
+
}
|
|
3519
|
+
/**
|
|
3520
|
+
* @param {WasmPreprocessingOptionsUpdate} update
|
|
3521
|
+
* @returns {WasmPreprocessingOptions}
|
|
3522
|
+
*/
|
|
3523
|
+
static fromUpdate(update) {
|
|
3524
|
+
_assertClass(update, WasmPreprocessingOptionsUpdate);
|
|
3525
|
+
var ptr0 = update.__destroy_into_raw();
|
|
3526
|
+
const ret = wasm.wasmpreprocessingoptions_fromUpdate(ptr0);
|
|
3527
|
+
return WasmPreprocessingOptions.__wrap(ret);
|
|
3528
|
+
}
|
|
3417
3529
|
/**
|
|
3418
3530
|
* @param {boolean | null} [enabled]
|
|
3419
3531
|
* @param {WasmPreprocessingPreset | null} [preset]
|
|
@@ -4019,7 +4131,7 @@ export const WasmTextDirection = Object.freeze({
|
|
|
4019
4131
|
});
|
|
4020
4132
|
|
|
4021
4133
|
/**
|
|
4022
|
-
* @enum {0 | 1 | 2 | 3 | 4}
|
|
4134
|
+
* @enum {0 | 1 | 2 | 3 | 4 | 5}
|
|
4023
4135
|
*/
|
|
4024
4136
|
export const WasmWarningKind = Object.freeze({
|
|
4025
4137
|
ImageExtractionFailed: 0, "0": "ImageExtractionFailed",
|
|
@@ -4027,6 +4139,7 @@ export const WasmWarningKind = Object.freeze({
|
|
|
4027
4139
|
TruncatedInput: 2, "2": "TruncatedInput",
|
|
4028
4140
|
MalformedHtml: 3, "3": "MalformedHtml",
|
|
4029
4141
|
SanitizationApplied: 4, "4": "SanitizationApplied",
|
|
4142
|
+
DepthLimitExceeded: 5, "5": "DepthLimitExceeded",
|
|
4030
4143
|
});
|
|
4031
4144
|
|
|
4032
4145
|
/**
|
|
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/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "html-to-markdown-wasm",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"description": "High-performance HTML to Markdown converter",
|
|
5
|
-
"version": "3.2.
|
|
5
|
+
"version": "3.2.6",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
@@ -18,5 +18,10 @@
|
|
|
18
18
|
"sideEffects": [
|
|
19
19
|
"./html_to_markdown_wasm.js",
|
|
20
20
|
"./snippets/*"
|
|
21
|
+
],
|
|
22
|
+
"keywords": [
|
|
23
|
+
"html",
|
|
24
|
+
"markdown",
|
|
25
|
+
"converter"
|
|
21
26
|
]
|
|
22
27
|
}
|
|
@@ -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 {
|