@kreuzberg/html-to-markdown-wasm 2.22.0 → 2.22.5
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 +59 -44
- package/dist/html_to_markdown_wasm_bg.js +512 -574
- package/dist/html_to_markdown_wasm_bg.wasm +0 -0
- package/dist/package.json +1 -1
- package/dist-node/html_to_markdown_wasm.d.ts +59 -44
- package/dist-node/html_to_markdown_wasm.js +558 -613
- package/dist-node/html_to_markdown_wasm_bg.wasm +0 -0
- package/dist-node/package.json +1 -1
- package/dist-web/html_to_markdown_wasm.d.ts +126 -111
- package/dist-web/html_to_markdown_wasm.js +623 -624
- package/dist-web/html_to_markdown_wasm_bg.wasm +0 -0
- package/dist-web/package.json +1 -1
- package/package.json +1 -1
|
@@ -2,65 +2,80 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
|
|
4
4
|
export class WasmConversionOptionsHandle {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
free(): void;
|
|
6
|
+
[Symbol.dispose](): void;
|
|
7
|
+
constructor(options?: WasmConversionOptions | null);
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
+
/**
|
|
11
|
+
* Result of HTML extraction with inline images
|
|
12
|
+
*/
|
|
10
13
|
export class WasmHtmlExtraction {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
private constructor();
|
|
15
|
+
free(): void;
|
|
16
|
+
[Symbol.dispose](): void;
|
|
17
|
+
readonly inlineImages: WasmInlineImage[];
|
|
18
|
+
readonly markdown: string;
|
|
19
|
+
readonly warnings: WasmInlineImageWarning[];
|
|
17
20
|
}
|
|
18
21
|
|
|
22
|
+
/**
|
|
23
|
+
* Inline image data
|
|
24
|
+
*/
|
|
19
25
|
export class WasmInlineImage {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
private constructor();
|
|
27
|
+
free(): void;
|
|
28
|
+
[Symbol.dispose](): void;
|
|
29
|
+
readonly attributes: Record<string, string>;
|
|
30
|
+
readonly data: Uint8Array;
|
|
31
|
+
readonly description: string | undefined;
|
|
32
|
+
readonly dimensions: Uint32Array | undefined;
|
|
33
|
+
readonly filename: string | undefined;
|
|
34
|
+
readonly format: string;
|
|
35
|
+
readonly source: string;
|
|
30
36
|
}
|
|
31
37
|
|
|
38
|
+
/**
|
|
39
|
+
* Inline image configuration
|
|
40
|
+
*/
|
|
32
41
|
export class WasmInlineImageConfig {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
42
|
+
free(): void;
|
|
43
|
+
[Symbol.dispose](): void;
|
|
44
|
+
constructor(max_decoded_size_bytes?: number | null);
|
|
45
|
+
set captureSvg(value: boolean);
|
|
46
|
+
set filenamePrefix(value: string | null | undefined);
|
|
47
|
+
set inferDimensions(value: boolean);
|
|
39
48
|
}
|
|
40
49
|
|
|
50
|
+
/**
|
|
51
|
+
* Warning about inline image processing
|
|
52
|
+
*/
|
|
41
53
|
export class WasmInlineImageWarning {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
54
|
+
private constructor();
|
|
55
|
+
free(): void;
|
|
56
|
+
[Symbol.dispose](): void;
|
|
57
|
+
readonly index: number;
|
|
58
|
+
readonly message: string;
|
|
47
59
|
}
|
|
48
60
|
|
|
61
|
+
/**
|
|
62
|
+
* Metadata extraction configuration
|
|
63
|
+
*/
|
|
49
64
|
export class WasmMetadataConfig {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
65
|
+
free(): void;
|
|
66
|
+
[Symbol.dispose](): void;
|
|
67
|
+
/**
|
|
68
|
+
* Create a new metadata configuration with defaults
|
|
69
|
+
*
|
|
70
|
+
* All extraction types enabled by default with 1MB structured data limit
|
|
71
|
+
*/
|
|
72
|
+
constructor();
|
|
73
|
+
extract_document: boolean;
|
|
74
|
+
extract_headers: boolean;
|
|
75
|
+
extract_images: boolean;
|
|
76
|
+
extract_links: boolean;
|
|
77
|
+
extract_structured_data: boolean;
|
|
78
|
+
max_structured_data_size: number;
|
|
64
79
|
}
|
|
65
80
|
|
|
66
81
|
/**
|