1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
//! Browser/WASM adapter functions over the same core [`crate::Document`] API.
//!
//! This module is intentionally thin: it does not parse Word files a second way.
//! The exported functions accept raw Word bytes, call the normal Rust core, and
//! return strings that are convenient for JavaScript demos and browser tests.
use crate::;
use *;
/// Extract normalized plain text from `.doc` or `.docx` bytes.
/// Extract normalized plain text from `.doc` or `.docx` bytes.
/// Convert Word bytes to Markdown through the core document model.
/// Convert Word bytes to Markdown through the core document model.
/// Convert Word bytes to HTML through the core document model.
/// Convert Word bytes to HTML through the core document model.
/// Return compact diagnostics JSON for Word bytes.
/// Return compact diagnostics JSON for Word bytes.
/// Return the typed report for native Rust callers and host-side tests.