@kreuzberg/html-to-markdown-wasm 3.2.0 → 3.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/html_to_markdown_wasm.d.ts +116 -116
- package/dist/html_to_markdown_wasm_bg.js +777 -777
- package/dist/html_to_markdown_wasm_bg.wasm +0 -0
- package/dist/html_to_markdown_wasm_bg.wasm.d.ts +377 -377
- package/dist-node/html_to_markdown_wasm.d.ts +116 -116
- package/dist-node/html_to_markdown_wasm.js +814 -814
- package/dist-node/html_to_markdown_wasm_bg.wasm +0 -0
- package/dist-node/html_to_markdown_wasm_bg.wasm.d.ts +377 -377
- package/dist-web/html_to_markdown_wasm.d.ts +493 -493
- package/dist-web/html_to_markdown_wasm.js +777 -777
- package/dist-web/html_to_markdown_wasm_bg.wasm +0 -0
- package/dist-web/html_to_markdown_wasm_bg.wasm.d.ts +377 -377
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
|
|
4
|
-
export enum
|
|
4
|
+
export enum WasmAnnotationKind {
|
|
5
5
|
Bold = 0,
|
|
6
6
|
Italic = 1,
|
|
7
7
|
Underline = 2,
|
|
@@ -13,23 +13,23 @@ export enum JsAnnotationKind {
|
|
|
13
13
|
Link = 8,
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
export enum
|
|
16
|
+
export enum WasmCodeBlockStyle {
|
|
17
17
|
Indented = 0,
|
|
18
18
|
Backticks = 1,
|
|
19
19
|
Tildes = 2,
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
export class
|
|
22
|
+
export class WasmConversionOptions {
|
|
23
23
|
free(): void;
|
|
24
24
|
[Symbol.dispose](): void;
|
|
25
|
-
static builder():
|
|
26
|
-
static default():
|
|
27
|
-
constructor(heading_style?:
|
|
25
|
+
static builder(): WasmConversionOptionsBuilder;
|
|
26
|
+
static default(): WasmConversionOptions;
|
|
27
|
+
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);
|
|
28
28
|
autolinks: boolean;
|
|
29
29
|
brInTables: boolean;
|
|
30
30
|
bullets: string;
|
|
31
31
|
captureSvg: boolean;
|
|
32
|
-
codeBlockStyle:
|
|
32
|
+
codeBlockStyle: WasmCodeBlockStyle;
|
|
33
33
|
codeLanguage: string;
|
|
34
34
|
convertAsInline: boolean;
|
|
35
35
|
debug: boolean;
|
|
@@ -41,18 +41,18 @@ export class JsConversionOptions {
|
|
|
41
41
|
escapeUnderscores: boolean;
|
|
42
42
|
extractImages: boolean;
|
|
43
43
|
extractMetadata: boolean;
|
|
44
|
-
headingStyle:
|
|
45
|
-
highlightStyle:
|
|
44
|
+
headingStyle: WasmHeadingStyle;
|
|
45
|
+
highlightStyle: WasmHighlightStyle;
|
|
46
46
|
includeDocumentStructure: boolean;
|
|
47
47
|
inferDimensions: boolean;
|
|
48
48
|
keepInlineImagesIn: string[];
|
|
49
|
-
linkStyle:
|
|
50
|
-
listIndentType:
|
|
49
|
+
linkStyle: WasmLinkStyle;
|
|
50
|
+
listIndentType: WasmListIndentType;
|
|
51
51
|
listIndentWidth: number;
|
|
52
52
|
maxImageSize: bigint;
|
|
53
|
-
newlineStyle:
|
|
54
|
-
outputFormat:
|
|
55
|
-
preprocessing:
|
|
53
|
+
newlineStyle: WasmNewlineStyle;
|
|
54
|
+
outputFormat: WasmOutputFormat;
|
|
55
|
+
preprocessing: WasmPreprocessingOptions;
|
|
56
56
|
preserveTags: string[];
|
|
57
57
|
skipImages: boolean;
|
|
58
58
|
stripNewlines: boolean;
|
|
@@ -60,26 +60,26 @@ export class JsConversionOptions {
|
|
|
60
60
|
strongEmSymbol: string;
|
|
61
61
|
subSymbol: string;
|
|
62
62
|
supSymbol: string;
|
|
63
|
-
whitespaceMode:
|
|
63
|
+
whitespaceMode: WasmWhitespaceMode;
|
|
64
64
|
wrap: boolean;
|
|
65
65
|
wrapWidth: number;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
export class
|
|
68
|
+
export class WasmConversionOptionsBuilder {
|
|
69
69
|
private constructor();
|
|
70
70
|
free(): void;
|
|
71
71
|
[Symbol.dispose](): void;
|
|
72
|
-
build():
|
|
73
|
-
keepInlineImagesIn(tags: string[]):
|
|
74
|
-
preprocessing(preprocessing:
|
|
75
|
-
preserveTags(tags: string[]):
|
|
76
|
-
stripTags(tags: string[]):
|
|
72
|
+
build(): WasmConversionOptions;
|
|
73
|
+
keepInlineImagesIn(tags: string[]): WasmConversionOptionsBuilder;
|
|
74
|
+
preprocessing(preprocessing: WasmPreprocessingOptions): WasmConversionOptionsBuilder;
|
|
75
|
+
preserveTags(tags: string[]): WasmConversionOptionsBuilder;
|
|
76
|
+
stripTags(tags: string[]): WasmConversionOptionsBuilder;
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
export class
|
|
79
|
+
export class WasmConversionOptionsUpdate {
|
|
80
80
|
free(): void;
|
|
81
81
|
[Symbol.dispose](): void;
|
|
82
|
-
constructor(heading_style?:
|
|
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);
|
|
83
83
|
get autolinks(): boolean | undefined;
|
|
84
84
|
set autolinks(value: boolean | null | undefined);
|
|
85
85
|
get brInTables(): boolean | undefined;
|
|
@@ -88,8 +88,8 @@ export class JsConversionOptionsUpdate {
|
|
|
88
88
|
set bullets(value: string | null | undefined);
|
|
89
89
|
get captureSvg(): boolean | undefined;
|
|
90
90
|
set captureSvg(value: boolean | null | undefined);
|
|
91
|
-
get codeBlockStyle():
|
|
92
|
-
set codeBlockStyle(value:
|
|
91
|
+
get codeBlockStyle(): WasmCodeBlockStyle | undefined;
|
|
92
|
+
set codeBlockStyle(value: WasmCodeBlockStyle | null | undefined);
|
|
93
93
|
get codeLanguage(): string | undefined;
|
|
94
94
|
set codeLanguage(value: string | null | undefined);
|
|
95
95
|
get convertAsInline(): boolean | undefined;
|
|
@@ -112,30 +112,30 @@ export class JsConversionOptionsUpdate {
|
|
|
112
112
|
set extractImages(value: boolean | null | undefined);
|
|
113
113
|
get extractMetadata(): boolean | undefined;
|
|
114
114
|
set extractMetadata(value: boolean | null | undefined);
|
|
115
|
-
get headingStyle():
|
|
116
|
-
set headingStyle(value:
|
|
117
|
-
get highlightStyle():
|
|
118
|
-
set highlightStyle(value:
|
|
115
|
+
get headingStyle(): WasmHeadingStyle | undefined;
|
|
116
|
+
set headingStyle(value: WasmHeadingStyle | null | undefined);
|
|
117
|
+
get highlightStyle(): WasmHighlightStyle | undefined;
|
|
118
|
+
set highlightStyle(value: WasmHighlightStyle | null | undefined);
|
|
119
119
|
get includeDocumentStructure(): boolean | undefined;
|
|
120
120
|
set includeDocumentStructure(value: boolean | null | undefined);
|
|
121
121
|
get inferDimensions(): boolean | undefined;
|
|
122
122
|
set inferDimensions(value: boolean | null | undefined);
|
|
123
123
|
get keepInlineImagesIn(): string[] | undefined;
|
|
124
124
|
set keepInlineImagesIn(value: string[] | null | undefined);
|
|
125
|
-
get linkStyle():
|
|
126
|
-
set linkStyle(value:
|
|
127
|
-
get listIndentType():
|
|
128
|
-
set listIndentType(value:
|
|
125
|
+
get linkStyle(): WasmLinkStyle | undefined;
|
|
126
|
+
set linkStyle(value: WasmLinkStyle | null | undefined);
|
|
127
|
+
get listIndentType(): WasmListIndentType | undefined;
|
|
128
|
+
set listIndentType(value: WasmListIndentType | null | undefined);
|
|
129
129
|
get listIndentWidth(): number | undefined;
|
|
130
130
|
set listIndentWidth(value: number | null | undefined);
|
|
131
131
|
get maxImageSize(): bigint | undefined;
|
|
132
132
|
set maxImageSize(value: bigint | null | undefined);
|
|
133
|
-
get newlineStyle():
|
|
134
|
-
set newlineStyle(value:
|
|
135
|
-
get outputFormat():
|
|
136
|
-
set outputFormat(value:
|
|
137
|
-
get preprocessing():
|
|
138
|
-
set preprocessing(value:
|
|
133
|
+
get newlineStyle(): WasmNewlineStyle | undefined;
|
|
134
|
+
set newlineStyle(value: WasmNewlineStyle | null | undefined);
|
|
135
|
+
get outputFormat(): WasmOutputFormat | undefined;
|
|
136
|
+
set outputFormat(value: WasmOutputFormat | null | undefined);
|
|
137
|
+
get preprocessing(): WasmPreprocessingOptionsUpdate | undefined;
|
|
138
|
+
set preprocessing(value: WasmPreprocessingOptionsUpdate | null | undefined);
|
|
139
139
|
get preserveTags(): string[] | undefined;
|
|
140
140
|
set preserveTags(value: string[] | null | undefined);
|
|
141
141
|
get skipImages(): boolean | undefined;
|
|
@@ -150,32 +150,32 @@ export class JsConversionOptionsUpdate {
|
|
|
150
150
|
set subSymbol(value: string | null | undefined);
|
|
151
151
|
get supSymbol(): string | undefined;
|
|
152
152
|
set supSymbol(value: string | null | undefined);
|
|
153
|
-
get whitespaceMode():
|
|
154
|
-
set whitespaceMode(value:
|
|
153
|
+
get whitespaceMode(): WasmWhitespaceMode | undefined;
|
|
154
|
+
set whitespaceMode(value: WasmWhitespaceMode | null | undefined);
|
|
155
155
|
get wrap(): boolean | undefined;
|
|
156
156
|
set wrap(value: boolean | null | undefined);
|
|
157
157
|
get wrapWidth(): number | undefined;
|
|
158
158
|
set wrapWidth(value: number | null | undefined);
|
|
159
159
|
}
|
|
160
160
|
|
|
161
|
-
export class
|
|
161
|
+
export class WasmConversionResult {
|
|
162
162
|
free(): void;
|
|
163
163
|
[Symbol.dispose](): void;
|
|
164
|
-
constructor(metadata?:
|
|
164
|
+
constructor(metadata?: WasmHtmlMetadata | null, tables?: WasmTableData[] | null, images?: string[] | null, warnings?: WasmProcessingWarning[] | null, content?: string | null, document?: WasmDocumentStructure | null);
|
|
165
165
|
get content(): string | undefined;
|
|
166
166
|
set content(value: string | null | undefined);
|
|
167
|
-
get document():
|
|
168
|
-
set document(value:
|
|
167
|
+
get document(): WasmDocumentStructure | undefined;
|
|
168
|
+
set document(value: WasmDocumentStructure | null | undefined);
|
|
169
169
|
images: string[];
|
|
170
|
-
metadata:
|
|
171
|
-
tables:
|
|
172
|
-
warnings:
|
|
170
|
+
metadata: WasmHtmlMetadata;
|
|
171
|
+
tables: WasmTableData[];
|
|
172
|
+
warnings: WasmProcessingWarning[];
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
-
export class
|
|
175
|
+
export class WasmDocumentMetadata {
|
|
176
176
|
free(): void;
|
|
177
177
|
[Symbol.dispose](): void;
|
|
178
|
-
constructor(keywords?: string[] | null, open_graph?: any | null, twitter_card?: any | null, meta_tags?: any | null, title?: string | null, description?: string | null, author?: string | null, canonical_url?: string | null, base_href?: string | null, language?: string | null, text_direction?:
|
|
178
|
+
constructor(keywords?: string[] | null, open_graph?: any | null, twitter_card?: any | null, meta_tags?: any | null, title?: string | null, description?: string | null, author?: string | null, canonical_url?: string | null, base_href?: string | null, language?: string | null, text_direction?: WasmTextDirection | null);
|
|
179
179
|
get author(): string | undefined;
|
|
180
180
|
set author(value: string | null | undefined);
|
|
181
181
|
get baseHref(): string | undefined;
|
|
@@ -189,37 +189,37 @@ export class JsDocumentMetadata {
|
|
|
189
189
|
set language(value: string | null | undefined);
|
|
190
190
|
metaTags: any;
|
|
191
191
|
openGraph: any;
|
|
192
|
-
get textDirection():
|
|
193
|
-
set textDirection(value:
|
|
192
|
+
get textDirection(): WasmTextDirection | undefined;
|
|
193
|
+
set textDirection(value: WasmTextDirection | null | undefined);
|
|
194
194
|
get title(): string | undefined;
|
|
195
195
|
set title(value: string | null | undefined);
|
|
196
196
|
twitterCard: any;
|
|
197
197
|
}
|
|
198
198
|
|
|
199
|
-
export class
|
|
199
|
+
export class WasmDocumentNode {
|
|
200
200
|
free(): void;
|
|
201
201
|
[Symbol.dispose](): void;
|
|
202
|
-
constructor(id: string, content:
|
|
203
|
-
annotations:
|
|
202
|
+
constructor(id: string, content: WasmNodeContent, children: Uint32Array, annotations: WasmTextAnnotation[], parent?: number | null, attributes?: any | null);
|
|
203
|
+
annotations: WasmTextAnnotation[];
|
|
204
204
|
get attributes(): any | undefined;
|
|
205
205
|
set attributes(value: any | null | undefined);
|
|
206
206
|
children: Uint32Array;
|
|
207
|
-
content:
|
|
207
|
+
content: WasmNodeContent;
|
|
208
208
|
id: string;
|
|
209
209
|
get parent(): number | undefined;
|
|
210
210
|
set parent(value: number | null | undefined);
|
|
211
211
|
}
|
|
212
212
|
|
|
213
|
-
export class
|
|
213
|
+
export class WasmDocumentStructure {
|
|
214
214
|
free(): void;
|
|
215
215
|
[Symbol.dispose](): void;
|
|
216
|
-
constructor(nodes:
|
|
217
|
-
nodes:
|
|
216
|
+
constructor(nodes: WasmDocumentNode[], source_format?: string | null);
|
|
217
|
+
nodes: WasmDocumentNode[];
|
|
218
218
|
get sourceFormat(): string | undefined;
|
|
219
219
|
set sourceFormat(value: string | null | undefined);
|
|
220
220
|
}
|
|
221
221
|
|
|
222
|
-
export class
|
|
222
|
+
export class WasmGridCell {
|
|
223
223
|
free(): void;
|
|
224
224
|
[Symbol.dispose](): void;
|
|
225
225
|
constructor(content: string, row: number, col: number, row_span: number, col_span: number, is_header: boolean);
|
|
@@ -231,7 +231,7 @@ export class JsGridCell {
|
|
|
231
231
|
rowSpan: number;
|
|
232
232
|
}
|
|
233
233
|
|
|
234
|
-
export class
|
|
234
|
+
export class WasmHeaderMetadata {
|
|
235
235
|
free(): void;
|
|
236
236
|
[Symbol.dispose](): void;
|
|
237
237
|
isValid(): boolean;
|
|
@@ -244,72 +244,72 @@ export class JsHeaderMetadata {
|
|
|
244
244
|
text: string;
|
|
245
245
|
}
|
|
246
246
|
|
|
247
|
-
export enum
|
|
247
|
+
export enum WasmHeadingStyle {
|
|
248
248
|
Underlined = 0,
|
|
249
249
|
Atx = 1,
|
|
250
250
|
AtxClosed = 2,
|
|
251
251
|
}
|
|
252
252
|
|
|
253
|
-
export enum
|
|
253
|
+
export enum WasmHighlightStyle {
|
|
254
254
|
DoubleEqual = 0,
|
|
255
255
|
Html = 1,
|
|
256
256
|
Bold = 2,
|
|
257
257
|
None = 3,
|
|
258
258
|
}
|
|
259
259
|
|
|
260
|
-
export class
|
|
260
|
+
export class WasmHtmlMetadata {
|
|
261
261
|
free(): void;
|
|
262
262
|
[Symbol.dispose](): void;
|
|
263
|
-
constructor(document?:
|
|
264
|
-
document:
|
|
265
|
-
headers:
|
|
266
|
-
images:
|
|
267
|
-
links:
|
|
268
|
-
structuredData:
|
|
263
|
+
constructor(document?: WasmDocumentMetadata | null, headers?: WasmHeaderMetadata[] | null, links?: WasmLinkMetadata[] | null, images?: WasmImageMetadata[] | null, structured_data?: WasmStructuredData[] | null);
|
|
264
|
+
document: WasmDocumentMetadata;
|
|
265
|
+
headers: WasmHeaderMetadata[];
|
|
266
|
+
images: WasmImageMetadata[];
|
|
267
|
+
links: WasmLinkMetadata[];
|
|
268
|
+
structuredData: WasmStructuredData[];
|
|
269
269
|
}
|
|
270
270
|
|
|
271
|
-
export class
|
|
271
|
+
export class WasmImageMetadata {
|
|
272
272
|
free(): void;
|
|
273
273
|
[Symbol.dispose](): void;
|
|
274
|
-
constructor(src: string, image_type:
|
|
274
|
+
constructor(src: string, image_type: WasmImageType, attributes: any, alt?: string | null, title?: string | null, dimensions?: string | null);
|
|
275
275
|
get alt(): string | undefined;
|
|
276
276
|
set alt(value: string | null | undefined);
|
|
277
277
|
attributes: any;
|
|
278
278
|
get dimensions(): string | undefined;
|
|
279
279
|
set dimensions(value: string | null | undefined);
|
|
280
|
-
imageType:
|
|
280
|
+
imageType: WasmImageType;
|
|
281
281
|
src: string;
|
|
282
282
|
get title(): string | undefined;
|
|
283
283
|
set title(value: string | null | undefined);
|
|
284
284
|
}
|
|
285
285
|
|
|
286
|
-
export enum
|
|
286
|
+
export enum WasmImageType {
|
|
287
287
|
DataUri = 0,
|
|
288
288
|
InlineSvg = 1,
|
|
289
289
|
External = 2,
|
|
290
290
|
Relative = 3,
|
|
291
291
|
}
|
|
292
292
|
|
|
293
|
-
export class
|
|
293
|
+
export class WasmLinkMetadata {
|
|
294
294
|
free(): void;
|
|
295
295
|
[Symbol.dispose](): void;
|
|
296
|
-
static classifyLink(href: string):
|
|
297
|
-
constructor(href: string, text: string, link_type:
|
|
296
|
+
static classifyLink(href: string): WasmLinkType;
|
|
297
|
+
constructor(href: string, text: string, link_type: WasmLinkType, rel: string[], attributes: any, title?: string | null);
|
|
298
298
|
attributes: any;
|
|
299
299
|
href: string;
|
|
300
|
-
linkType:
|
|
300
|
+
linkType: WasmLinkType;
|
|
301
301
|
rel: string[];
|
|
302
302
|
text: string;
|
|
303
303
|
get title(): string | undefined;
|
|
304
304
|
set title(value: string | null | undefined);
|
|
305
305
|
}
|
|
306
306
|
|
|
307
|
-
export enum
|
|
307
|
+
export enum WasmLinkStyle {
|
|
308
308
|
Inline = 0,
|
|
309
309
|
Reference = 1,
|
|
310
310
|
}
|
|
311
311
|
|
|
312
|
-
export enum
|
|
312
|
+
export enum WasmLinkType {
|
|
313
313
|
Anchor = 0,
|
|
314
314
|
Internal = 1,
|
|
315
315
|
External = 2,
|
|
@@ -318,16 +318,16 @@ export enum JsLinkType {
|
|
|
318
318
|
Other = 5,
|
|
319
319
|
}
|
|
320
320
|
|
|
321
|
-
export enum
|
|
321
|
+
export enum WasmListIndentType {
|
|
322
322
|
Spaces = 0,
|
|
323
323
|
Tabs = 1,
|
|
324
324
|
}
|
|
325
325
|
|
|
326
|
-
export class
|
|
326
|
+
export class WasmMetadataConfig {
|
|
327
327
|
free(): void;
|
|
328
328
|
[Symbol.dispose](): void;
|
|
329
329
|
anyEnabled(): boolean;
|
|
330
|
-
static default():
|
|
330
|
+
static default(): WasmMetadataConfig;
|
|
331
331
|
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
332
|
extractDocument: boolean;
|
|
333
333
|
extractHeaders: boolean;
|
|
@@ -337,7 +337,7 @@ export class JsMetadataConfig {
|
|
|
337
337
|
maxStructuredDataSize: number;
|
|
338
338
|
}
|
|
339
339
|
|
|
340
|
-
export class
|
|
340
|
+
export class WasmMetadataConfigUpdate {
|
|
341
341
|
free(): void;
|
|
342
342
|
[Symbol.dispose](): void;
|
|
343
343
|
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);
|
|
@@ -355,12 +355,12 @@ export class JsMetadataConfigUpdate {
|
|
|
355
355
|
set maxStructuredDataSize(value: number | null | undefined);
|
|
356
356
|
}
|
|
357
357
|
|
|
358
|
-
export enum
|
|
358
|
+
export enum WasmNewlineStyle {
|
|
359
359
|
Spaces = 0,
|
|
360
360
|
Backslash = 1,
|
|
361
361
|
}
|
|
362
362
|
|
|
363
|
-
export enum
|
|
363
|
+
export enum WasmNodeContent {
|
|
364
364
|
Heading = 0,
|
|
365
365
|
Paragraph = 1,
|
|
366
366
|
List = 2,
|
|
@@ -376,100 +376,100 @@ export enum JsNodeContent {
|
|
|
376
376
|
Group = 12,
|
|
377
377
|
}
|
|
378
378
|
|
|
379
|
-
export enum
|
|
379
|
+
export enum WasmOutputFormat {
|
|
380
380
|
Markdown = 0,
|
|
381
381
|
Djot = 1,
|
|
382
382
|
Plain = 2,
|
|
383
383
|
}
|
|
384
384
|
|
|
385
|
-
export class
|
|
385
|
+
export class WasmPreprocessingOptions {
|
|
386
386
|
free(): void;
|
|
387
387
|
[Symbol.dispose](): void;
|
|
388
|
-
static default():
|
|
389
|
-
constructor(enabled?: boolean | null, preset?:
|
|
388
|
+
static default(): WasmPreprocessingOptions;
|
|
389
|
+
constructor(enabled?: boolean | null, preset?: WasmPreprocessingPreset | null, remove_navigation?: boolean | null, remove_forms?: boolean | null);
|
|
390
390
|
enabled: boolean;
|
|
391
|
-
preset:
|
|
391
|
+
preset: WasmPreprocessingPreset;
|
|
392
392
|
removeForms: boolean;
|
|
393
393
|
removeNavigation: boolean;
|
|
394
394
|
}
|
|
395
395
|
|
|
396
|
-
export class
|
|
396
|
+
export class WasmPreprocessingOptionsUpdate {
|
|
397
397
|
free(): void;
|
|
398
398
|
[Symbol.dispose](): void;
|
|
399
|
-
constructor(enabled?: boolean | null, preset?:
|
|
399
|
+
constructor(enabled?: boolean | null, preset?: WasmPreprocessingPreset | null, remove_navigation?: boolean | null, remove_forms?: boolean | null);
|
|
400
400
|
get enabled(): boolean | undefined;
|
|
401
401
|
set enabled(value: boolean | null | undefined);
|
|
402
|
-
get preset():
|
|
403
|
-
set preset(value:
|
|
402
|
+
get preset(): WasmPreprocessingPreset | undefined;
|
|
403
|
+
set preset(value: WasmPreprocessingPreset | null | undefined);
|
|
404
404
|
get removeForms(): boolean | undefined;
|
|
405
405
|
set removeForms(value: boolean | null | undefined);
|
|
406
406
|
get removeNavigation(): boolean | undefined;
|
|
407
407
|
set removeNavigation(value: boolean | null | undefined);
|
|
408
408
|
}
|
|
409
409
|
|
|
410
|
-
export enum
|
|
410
|
+
export enum WasmPreprocessingPreset {
|
|
411
411
|
Minimal = 0,
|
|
412
412
|
Standard = 1,
|
|
413
413
|
Aggressive = 2,
|
|
414
414
|
}
|
|
415
415
|
|
|
416
|
-
export class
|
|
416
|
+
export class WasmProcessingWarning {
|
|
417
417
|
free(): void;
|
|
418
418
|
[Symbol.dispose](): void;
|
|
419
|
-
constructor(message: string, kind:
|
|
420
|
-
kind:
|
|
419
|
+
constructor(message: string, kind: WasmWarningKind);
|
|
420
|
+
kind: WasmWarningKind;
|
|
421
421
|
message: string;
|
|
422
422
|
}
|
|
423
423
|
|
|
424
|
-
export class
|
|
424
|
+
export class WasmStructuredData {
|
|
425
425
|
free(): void;
|
|
426
426
|
[Symbol.dispose](): void;
|
|
427
|
-
constructor(data_type:
|
|
428
|
-
dataType:
|
|
427
|
+
constructor(data_type: WasmStructuredDataType, raw_json: string, schema_type?: string | null);
|
|
428
|
+
dataType: WasmStructuredDataType;
|
|
429
429
|
rawJson: string;
|
|
430
430
|
get schemaType(): string | undefined;
|
|
431
431
|
set schemaType(value: string | null | undefined);
|
|
432
432
|
}
|
|
433
433
|
|
|
434
|
-
export enum
|
|
434
|
+
export enum WasmStructuredDataType {
|
|
435
435
|
JsonLd = 0,
|
|
436
436
|
Microdata = 1,
|
|
437
437
|
RDFa = 2,
|
|
438
438
|
}
|
|
439
439
|
|
|
440
|
-
export class
|
|
440
|
+
export class WasmTableData {
|
|
441
441
|
free(): void;
|
|
442
442
|
[Symbol.dispose](): void;
|
|
443
|
-
constructor(grid:
|
|
444
|
-
grid:
|
|
443
|
+
constructor(grid: WasmTableGrid, markdown: string);
|
|
444
|
+
grid: WasmTableGrid;
|
|
445
445
|
markdown: string;
|
|
446
446
|
}
|
|
447
447
|
|
|
448
|
-
export class
|
|
448
|
+
export class WasmTableGrid {
|
|
449
449
|
free(): void;
|
|
450
450
|
[Symbol.dispose](): void;
|
|
451
|
-
constructor(rows?: number | null, cols?: number | null, cells?:
|
|
452
|
-
cells:
|
|
451
|
+
constructor(rows?: number | null, cols?: number | null, cells?: WasmGridCell[] | null);
|
|
452
|
+
cells: WasmGridCell[];
|
|
453
453
|
cols: number;
|
|
454
454
|
rows: number;
|
|
455
455
|
}
|
|
456
456
|
|
|
457
|
-
export class
|
|
457
|
+
export class WasmTextAnnotation {
|
|
458
458
|
free(): void;
|
|
459
459
|
[Symbol.dispose](): void;
|
|
460
|
-
constructor(start: number, end: number, kind:
|
|
460
|
+
constructor(start: number, end: number, kind: WasmAnnotationKind);
|
|
461
461
|
end: number;
|
|
462
|
-
kind:
|
|
462
|
+
kind: WasmAnnotationKind;
|
|
463
463
|
start: number;
|
|
464
464
|
}
|
|
465
465
|
|
|
466
|
-
export enum
|
|
466
|
+
export enum WasmTextDirection {
|
|
467
467
|
LeftToRight = 0,
|
|
468
468
|
RightToLeft = 1,
|
|
469
469
|
Auto = 2,
|
|
470
470
|
}
|
|
471
471
|
|
|
472
|
-
export enum
|
|
472
|
+
export enum WasmWarningKind {
|
|
473
473
|
ImageExtractionFailed = 0,
|
|
474
474
|
EncodingFallback = 1,
|
|
475
475
|
TruncatedInput = 2,
|
|
@@ -477,12 +477,12 @@ export enum JsWarningKind {
|
|
|
477
477
|
SanitizationApplied = 4,
|
|
478
478
|
}
|
|
479
479
|
|
|
480
|
-
export enum
|
|
480
|
+
export enum WasmWhitespaceMode {
|
|
481
481
|
Normalized = 0,
|
|
482
482
|
Strict = 1,
|
|
483
483
|
}
|
|
484
484
|
|
|
485
|
-
export function convert(html: string, options?:
|
|
485
|
+
export function convert(html: string, options?: WasmConversionOptions | null): WasmConversionResult;
|
|
486
486
|
|
|
487
487
|
|
|
488
488
|
export type WasmHeadingStyle = "underlined" | "atx" | "atxClosed";
|