@mdgate/office-common 0.6.7 → 0.6.9
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/README.md +40 -4
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -1,7 +1,43 @@
|
|
|
1
1
|
# @mdgate/office-common
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
**Internal Office-format semantics shared by mdgate converters.**
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
This package is a shared library used by Word, PowerPoint, Excel, and related converters. Install a converter package (for example [`@mdgate/docx`](https://github.com/mdgate/converters/tree/main/packages/docx)) or [`@mdgate/converters`](https://github.com/mdgate/converters/tree/main/packages/converters) instead of depending on this directly.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## What it provides
|
|
10
|
+
|
|
11
|
+
* Word field codes
|
|
12
|
+
* list numbering
|
|
13
|
+
* style deltas
|
|
14
|
+
* border-grid tables
|
|
15
|
+
* DrawingML and OfficeArt graphics
|
|
16
|
+
|
|
17
|
+
These helpers keep OOXML and OLE office converters on one document model. Applications should not need them.
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## Need a complete reader?
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
npm install @mdgate/converters
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
```ts
|
|
28
|
+
import { toMarkdown } from '@mdgate/converters';
|
|
29
|
+
|
|
30
|
+
const markdown = await toMarkdown(bytes, {
|
|
31
|
+
path: filename,
|
|
32
|
+
});
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
[`@mdgate/office-common`](https://github.com/mdgate/converters/tree/main/packages/office-common) is part of the open-source [`mdgate/converters`](https://github.com/mdgate/converters) project.
|
|
36
|
+
|
|
37
|
+
For AI agents, the same converter architecture can be used to extend `read_file` from text files to real-world document formats.
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
## License
|
|
42
|
+
|
|
43
|
+
MIT
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mdgate/office-common",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.9",
|
|
4
4
|
"description": "mdgate shared office-format semantics: fields, numbering, styles, DrawingML",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
|
-
"homepage": "https://
|
|
7
|
+
"homepage": "https://convert.mdgate.dev",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
10
10
|
"url": "git+https://github.com/mdgate/converters.git",
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
"prepublishOnly": "bun run build"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@mdgate/containers": "0.6.
|
|
32
|
-
"@mdgate/core": "0.6.
|
|
33
|
-
"@mdgate/document": "0.6.
|
|
34
|
-
"@mdgate/utils": "0.6.
|
|
31
|
+
"@mdgate/containers": "0.6.9",
|
|
32
|
+
"@mdgate/core": "0.6.9",
|
|
33
|
+
"@mdgate/document": "0.6.9",
|
|
34
|
+
"@mdgate/utils": "0.6.9"
|
|
35
35
|
},
|
|
36
36
|
"publishConfig": {
|
|
37
37
|
"access": "public"
|