officeparser 7.7.0 → 7.8.0
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 +3 -2
- package/dist/defaults.js +2 -0
- package/dist/generators/HtmlGenerator.js +19 -3
- package/dist/generators/MarkdownGenerator.d.ts +1 -0
- package/dist/generators/MarkdownGenerator.js +58 -14
- package/dist/officeparser.browser.d.ts +52 -2
- package/dist/officeparser.browser.iife.js +167 -161
- package/dist/officeparser.browser.mjs +167 -161
- package/dist/officeparser.browser.slim.d.ts +52 -2
- package/dist/officeparser.browser.slim.iife.js +158 -152
- package/dist/officeparser.browser.slim.mjs +158 -152
- package/dist/parsers/HtmlParser.js +37 -2
- package/dist/parsers/MarkdownParser.js +113 -3
- package/dist/sbom.cdx.json +92 -92
- package/dist/types.d.ts +52 -2
- package/package.json +1 -1
package/dist/sbom.cdx.json
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
"bomFormat": "CycloneDX",
|
|
4
4
|
"specVersion": "1.6",
|
|
5
5
|
"version": 1,
|
|
6
|
-
"serialNumber": "urn:uuid:
|
|
6
|
+
"serialNumber": "urn:uuid:f41b2f13-0241-44b2-bd4b-1ae51d458463",
|
|
7
7
|
"metadata": {
|
|
8
|
-
"timestamp": "2026-08-
|
|
8
|
+
"timestamp": "2026-08-18T21:56:11.512Z",
|
|
9
9
|
"tools": {
|
|
10
10
|
"components": [
|
|
11
11
|
{
|
|
@@ -98,8 +98,8 @@
|
|
|
98
98
|
"component": {
|
|
99
99
|
"type": "application",
|
|
100
100
|
"name": "officeparser",
|
|
101
|
-
"version": "7.
|
|
102
|
-
"bom-ref": "officeparser@7.
|
|
101
|
+
"version": "7.8.0",
|
|
102
|
+
"bom-ref": "officeparser@7.8.0",
|
|
103
103
|
"author": "Harsh Ankur",
|
|
104
104
|
"description": "A robust, strictly-typed Node.js and Browser library for parsing office files (.docx, .pptx, .xlsx, .odt, .odp, .ods, .pdf, .rtf, .csv, .md, .html, .epub) and generating high-fidelity outputs in Markdown, HTML, CSV, RTF, PDF, EPUB, and RAG-focused chunks.",
|
|
105
105
|
"licenses": [
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
],
|
|
113
|
-
"purl": "pkg:npm/officeparser@7.
|
|
113
|
+
"purl": "pkg:npm/officeparser@7.8.0?vcs_url=git%2Bhttps%3A%2F%2Fgithub.com%2Fharshankur%2FofficeParser.git",
|
|
114
114
|
"externalReferences": [
|
|
115
115
|
{
|
|
116
116
|
"url": "git+https://github.com/harshankur/officeParser.git",
|
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
"name": "xmldom",
|
|
147
147
|
"group": "@xmldom",
|
|
148
148
|
"version": "0.9.10",
|
|
149
|
-
"bom-ref": "officeparser@7.
|
|
149
|
+
"bom-ref": "officeparser@7.8.0|@xmldom/xmldom@0.9.10",
|
|
150
150
|
"description": "A pure JavaScript W3C standard-based (XML DOM Level 2 Core) DOMParser and XMLSerializer module.",
|
|
151
151
|
"licenses": [
|
|
152
152
|
{
|
|
@@ -200,7 +200,7 @@
|
|
|
200
200
|
"type": "library",
|
|
201
201
|
"name": "fflate",
|
|
202
202
|
"version": "0.8.3",
|
|
203
|
-
"bom-ref": "officeparser@7.
|
|
203
|
+
"bom-ref": "officeparser@7.8.0|fflate@0.8.3",
|
|
204
204
|
"author": "Arjun Barrett",
|
|
205
205
|
"description": "High performance (de)compression in an 8kB package",
|
|
206
206
|
"licenses": [
|
|
@@ -251,7 +251,7 @@
|
|
|
251
251
|
"type": "library",
|
|
252
252
|
"name": "file-type",
|
|
253
253
|
"version": "22.0.1",
|
|
254
|
-
"bom-ref": "officeparser@7.
|
|
254
|
+
"bom-ref": "officeparser@7.8.0|file-type@22.0.1",
|
|
255
255
|
"author": "Sindre Sorhus",
|
|
256
256
|
"description": "Detect the file type of a file, stream, or data",
|
|
257
257
|
"licenses": [
|
|
@@ -306,7 +306,7 @@
|
|
|
306
306
|
"type": "library",
|
|
307
307
|
"name": "pdfjs-dist",
|
|
308
308
|
"version": "6.1.200",
|
|
309
|
-
"bom-ref": "officeparser@7.
|
|
309
|
+
"bom-ref": "officeparser@7.8.0|pdfjs-dist@6.1.200",
|
|
310
310
|
"description": "Generic build of Mozilla's PDF.js library.",
|
|
311
311
|
"licenses": [
|
|
312
312
|
{
|
|
@@ -360,7 +360,7 @@
|
|
|
360
360
|
"type": "library",
|
|
361
361
|
"name": "tesseract.js",
|
|
362
362
|
"version": "7.0.0",
|
|
363
|
-
"bom-ref": "officeparser@7.
|
|
363
|
+
"bom-ref": "officeparser@7.8.0|tesseract.js@7.0.0",
|
|
364
364
|
"description": "Pure Javascript Multilingual OCR",
|
|
365
365
|
"licenses": [
|
|
366
366
|
{
|
|
@@ -411,7 +411,7 @@
|
|
|
411
411
|
"name": "inflate",
|
|
412
412
|
"group": "@tokenizer",
|
|
413
413
|
"version": "0.4.1",
|
|
414
|
-
"bom-ref": "officeparser@7.
|
|
414
|
+
"bom-ref": "officeparser@7.8.0|@tokenizer/inflate@0.4.1",
|
|
415
415
|
"author": "Borewit",
|
|
416
416
|
"description": "Tokenized zip support",
|
|
417
417
|
"licenses": [
|
|
@@ -466,7 +466,7 @@
|
|
|
466
466
|
"type": "library",
|
|
467
467
|
"name": "strtok3",
|
|
468
468
|
"version": "10.3.5",
|
|
469
|
-
"bom-ref": "officeparser@7.
|
|
469
|
+
"bom-ref": "officeparser@7.8.0|strtok3@10.3.5",
|
|
470
470
|
"author": "Borewit",
|
|
471
471
|
"description": "A promise based streaming tokenizer",
|
|
472
472
|
"licenses": [
|
|
@@ -521,7 +521,7 @@
|
|
|
521
521
|
"type": "library",
|
|
522
522
|
"name": "token-types",
|
|
523
523
|
"version": "6.1.2",
|
|
524
|
-
"bom-ref": "officeparser@7.
|
|
524
|
+
"bom-ref": "officeparser@7.8.0|token-types@6.1.2",
|
|
525
525
|
"author": "Borewit",
|
|
526
526
|
"description": "Common token types for decoding and encoding numeric and string values",
|
|
527
527
|
"licenses": [
|
|
@@ -576,7 +576,7 @@
|
|
|
576
576
|
"type": "library",
|
|
577
577
|
"name": "uint8array-extras",
|
|
578
578
|
"version": "1.5.0",
|
|
579
|
-
"bom-ref": "officeparser@7.
|
|
579
|
+
"bom-ref": "officeparser@7.8.0|uint8array-extras@1.5.0",
|
|
580
580
|
"author": "Sindre Sorhus",
|
|
581
581
|
"description": "Useful utilities for working with Uint8Array (and Buffer)",
|
|
582
582
|
"licenses": [
|
|
@@ -632,7 +632,7 @@
|
|
|
632
632
|
"name": "canvas",
|
|
633
633
|
"group": "@napi-rs",
|
|
634
634
|
"version": "1.0.1",
|
|
635
|
-
"bom-ref": "officeparser@7.
|
|
635
|
+
"bom-ref": "officeparser@7.8.0|@napi-rs/canvas@1.0.1",
|
|
636
636
|
"description": "Canvas for Node.js with skia backend",
|
|
637
637
|
"scope": "optional",
|
|
638
638
|
"licenses": [
|
|
@@ -687,7 +687,7 @@
|
|
|
687
687
|
"type": "library",
|
|
688
688
|
"name": "bmp-js",
|
|
689
689
|
"version": "0.1.0",
|
|
690
|
-
"bom-ref": "officeparser@7.
|
|
690
|
+
"bom-ref": "officeparser@7.8.0|bmp-js@0.1.0",
|
|
691
691
|
"author": "shaozilee",
|
|
692
692
|
"description": "A pure javascript BMP encoder and decoder",
|
|
693
693
|
"licenses": [
|
|
@@ -738,7 +738,7 @@
|
|
|
738
738
|
"type": "library",
|
|
739
739
|
"name": "idb-keyval",
|
|
740
740
|
"version": "6.2.2",
|
|
741
|
-
"bom-ref": "officeparser@7.
|
|
741
|
+
"bom-ref": "officeparser@7.8.0|idb-keyval@6.2.2",
|
|
742
742
|
"author": "Jake Archibald",
|
|
743
743
|
"description": "A super-simple-small keyval store built on top of IndexedDB",
|
|
744
744
|
"licenses": [
|
|
@@ -789,7 +789,7 @@
|
|
|
789
789
|
"type": "library",
|
|
790
790
|
"name": "is-url",
|
|
791
791
|
"version": "1.2.4",
|
|
792
|
-
"bom-ref": "officeparser@7.
|
|
792
|
+
"bom-ref": "officeparser@7.8.0|is-url@1.2.4",
|
|
793
793
|
"description": "Check whether a string is a URL.",
|
|
794
794
|
"licenses": [
|
|
795
795
|
{
|
|
@@ -839,7 +839,7 @@
|
|
|
839
839
|
"type": "library",
|
|
840
840
|
"name": "node-fetch",
|
|
841
841
|
"version": "2.7.0",
|
|
842
|
-
"bom-ref": "officeparser@7.
|
|
842
|
+
"bom-ref": "officeparser@7.8.0|node-fetch@2.7.0",
|
|
843
843
|
"author": "David Frank",
|
|
844
844
|
"description": "A light-weight module that brings window.fetch to node.js",
|
|
845
845
|
"licenses": [
|
|
@@ -894,7 +894,7 @@
|
|
|
894
894
|
"type": "library",
|
|
895
895
|
"name": "opencollective-postinstall",
|
|
896
896
|
"version": "2.0.3",
|
|
897
|
-
"bom-ref": "officeparser@7.
|
|
897
|
+
"bom-ref": "officeparser@7.8.0|opencollective-postinstall@2.0.3",
|
|
898
898
|
"author": "Xavier Damman",
|
|
899
899
|
"description": "Lightweight npm postinstall message to invite people to donate to your collective",
|
|
900
900
|
"licenses": [
|
|
@@ -945,7 +945,7 @@
|
|
|
945
945
|
"type": "library",
|
|
946
946
|
"name": "regenerator-runtime",
|
|
947
947
|
"version": "0.13.11",
|
|
948
|
-
"bom-ref": "officeparser@7.
|
|
948
|
+
"bom-ref": "officeparser@7.8.0|regenerator-runtime@0.13.11",
|
|
949
949
|
"author": "Ben Newman",
|
|
950
950
|
"description": "Runtime for Regenerator-compiled generator and async functions.",
|
|
951
951
|
"licenses": [
|
|
@@ -996,7 +996,7 @@
|
|
|
996
996
|
"type": "library",
|
|
997
997
|
"name": "tesseract.js-core",
|
|
998
998
|
"version": "7.0.0",
|
|
999
|
-
"bom-ref": "officeparser@7.
|
|
999
|
+
"bom-ref": "officeparser@7.8.0|tesseract.js-core@7.0.0",
|
|
1000
1000
|
"author": "antimatter15",
|
|
1001
1001
|
"description": "Tesseract C++ API in Pure Javascript",
|
|
1002
1002
|
"licenses": [
|
|
@@ -1047,7 +1047,7 @@
|
|
|
1047
1047
|
"type": "library",
|
|
1048
1048
|
"name": "wasm-feature-detect",
|
|
1049
1049
|
"version": "1.8.0",
|
|
1050
|
-
"bom-ref": "officeparser@7.
|
|
1050
|
+
"bom-ref": "officeparser@7.8.0|wasm-feature-detect@1.8.0",
|
|
1051
1051
|
"author": "Surma",
|
|
1052
1052
|
"description": "A small library to detect which features of WebAssembly are supported in your current browser.",
|
|
1053
1053
|
"licenses": [
|
|
@@ -1098,7 +1098,7 @@
|
|
|
1098
1098
|
"type": "library",
|
|
1099
1099
|
"name": "zlibjs",
|
|
1100
1100
|
"version": "0.3.1",
|
|
1101
|
-
"bom-ref": "officeparser@7.
|
|
1101
|
+
"bom-ref": "officeparser@7.8.0|zlibjs@0.3.1",
|
|
1102
1102
|
"author": "Yuta Imaya",
|
|
1103
1103
|
"description": "zlib, gzip and zip implementation in JavaScript",
|
|
1104
1104
|
"licenses": [
|
|
@@ -1153,7 +1153,7 @@
|
|
|
1153
1153
|
"type": "library",
|
|
1154
1154
|
"name": "debug",
|
|
1155
1155
|
"version": "4.4.3",
|
|
1156
|
-
"bom-ref": "officeparser@7.
|
|
1156
|
+
"bom-ref": "officeparser@7.8.0|debug@4.4.3",
|
|
1157
1157
|
"author": "Josh Junon",
|
|
1158
1158
|
"description": "Lightweight debugging utility for Node.js and the browser",
|
|
1159
1159
|
"licenses": [
|
|
@@ -1209,7 +1209,7 @@
|
|
|
1209
1209
|
"name": "token",
|
|
1210
1210
|
"group": "@tokenizer",
|
|
1211
1211
|
"version": "0.3.0",
|
|
1212
|
-
"bom-ref": "officeparser@7.
|
|
1212
|
+
"bom-ref": "officeparser@7.8.0|@tokenizer/token@0.3.0",
|
|
1213
1213
|
"author": "Borewit",
|
|
1214
1214
|
"description": "TypeScript definition for strtok3 token",
|
|
1215
1215
|
"licenses": [
|
|
@@ -1261,7 +1261,7 @@
|
|
|
1261
1261
|
"name": "text-codec",
|
|
1262
1262
|
"group": "@borewit",
|
|
1263
1263
|
"version": "0.2.2",
|
|
1264
|
-
"bom-ref": "officeparser@7.
|
|
1264
|
+
"bom-ref": "officeparser@7.8.0|@borewit/text-codec@0.2.2",
|
|
1265
1265
|
"author": "Borewit",
|
|
1266
1266
|
"description": "Text Decoder",
|
|
1267
1267
|
"licenses": [
|
|
@@ -1312,7 +1312,7 @@
|
|
|
1312
1312
|
"type": "library",
|
|
1313
1313
|
"name": "ieee754",
|
|
1314
1314
|
"version": "1.2.1",
|
|
1315
|
-
"bom-ref": "officeparser@7.
|
|
1315
|
+
"bom-ref": "officeparser@7.8.0|ieee754@1.2.1",
|
|
1316
1316
|
"author": "Feross Aboukhadijeh",
|
|
1317
1317
|
"description": "Read/write IEEE754 floating point numbers from/to a Buffer or array-like object",
|
|
1318
1318
|
"licenses": [
|
|
@@ -1364,7 +1364,7 @@
|
|
|
1364
1364
|
"name": "canvas-linux-x64-gnu",
|
|
1365
1365
|
"group": "@napi-rs",
|
|
1366
1366
|
"version": "1.0.1",
|
|
1367
|
-
"bom-ref": "officeparser@7.
|
|
1367
|
+
"bom-ref": "officeparser@7.8.0|@napi-rs/canvas-linux-x64-gnu@1.0.1",
|
|
1368
1368
|
"description": "Canvas for Node.js with skia backend",
|
|
1369
1369
|
"scope": "optional",
|
|
1370
1370
|
"licenses": [
|
|
@@ -1419,7 +1419,7 @@
|
|
|
1419
1419
|
"type": "library",
|
|
1420
1420
|
"name": "whatwg-url",
|
|
1421
1421
|
"version": "5.0.0",
|
|
1422
|
-
"bom-ref": "officeparser@7.
|
|
1422
|
+
"bom-ref": "officeparser@7.8.0|whatwg-url@5.0.0",
|
|
1423
1423
|
"author": "Sebastian Mayr",
|
|
1424
1424
|
"description": "An implementation of the WHATWG URL Standard's URL API and parsing machinery",
|
|
1425
1425
|
"licenses": [
|
|
@@ -1470,7 +1470,7 @@
|
|
|
1470
1470
|
"type": "library",
|
|
1471
1471
|
"name": "ms",
|
|
1472
1472
|
"version": "2.1.3",
|
|
1473
|
-
"bom-ref": "officeparser@7.
|
|
1473
|
+
"bom-ref": "officeparser@7.8.0|ms@2.1.3",
|
|
1474
1474
|
"description": "Tiny millisecond conversion utility",
|
|
1475
1475
|
"licenses": [
|
|
1476
1476
|
{
|
|
@@ -1520,7 +1520,7 @@
|
|
|
1520
1520
|
"type": "library",
|
|
1521
1521
|
"name": "tr46",
|
|
1522
1522
|
"version": "0.0.3",
|
|
1523
|
-
"bom-ref": "officeparser@7.
|
|
1523
|
+
"bom-ref": "officeparser@7.8.0|tr46@0.0.3",
|
|
1524
1524
|
"author": "Sebastian Mayr",
|
|
1525
1525
|
"description": "An implementation of the Unicode TR46 spec",
|
|
1526
1526
|
"licenses": [
|
|
@@ -1571,7 +1571,7 @@
|
|
|
1571
1571
|
"type": "library",
|
|
1572
1572
|
"name": "webidl-conversions",
|
|
1573
1573
|
"version": "3.0.1",
|
|
1574
|
-
"bom-ref": "officeparser@7.
|
|
1574
|
+
"bom-ref": "officeparser@7.8.0|webidl-conversions@3.0.1",
|
|
1575
1575
|
"author": "Domenic Denicola",
|
|
1576
1576
|
"description": "Implements the WebIDL algorithms for converting to and from JavaScript values",
|
|
1577
1577
|
"licenses": [
|
|
@@ -1621,143 +1621,143 @@
|
|
|
1621
1621
|
],
|
|
1622
1622
|
"dependencies": [
|
|
1623
1623
|
{
|
|
1624
|
-
"ref": "officeparser@7.
|
|
1624
|
+
"ref": "officeparser@7.8.0",
|
|
1625
1625
|
"dependsOn": [
|
|
1626
|
-
"officeparser@7.
|
|
1627
|
-
"officeparser@7.
|
|
1628
|
-
"officeparser@7.
|
|
1629
|
-
"officeparser@7.
|
|
1630
|
-
"officeparser@7.
|
|
1626
|
+
"officeparser@7.8.0|@xmldom/xmldom@0.9.10",
|
|
1627
|
+
"officeparser@7.8.0|fflate@0.8.3",
|
|
1628
|
+
"officeparser@7.8.0|file-type@22.0.1",
|
|
1629
|
+
"officeparser@7.8.0|pdfjs-dist@6.1.200",
|
|
1630
|
+
"officeparser@7.8.0|tesseract.js@7.0.0"
|
|
1631
1631
|
]
|
|
1632
1632
|
},
|
|
1633
1633
|
{
|
|
1634
|
-
"ref": "officeparser@7.
|
|
1634
|
+
"ref": "officeparser@7.8.0|@xmldom/xmldom@0.9.10"
|
|
1635
1635
|
},
|
|
1636
1636
|
{
|
|
1637
|
-
"ref": "officeparser@7.
|
|
1637
|
+
"ref": "officeparser@7.8.0|fflate@0.8.3"
|
|
1638
1638
|
},
|
|
1639
1639
|
{
|
|
1640
|
-
"ref": "officeparser@7.
|
|
1640
|
+
"ref": "officeparser@7.8.0|file-type@22.0.1",
|
|
1641
1641
|
"dependsOn": [
|
|
1642
|
-
"officeparser@7.
|
|
1643
|
-
"officeparser@7.
|
|
1644
|
-
"officeparser@7.
|
|
1645
|
-
"officeparser@7.
|
|
1642
|
+
"officeparser@7.8.0|@tokenizer/inflate@0.4.1",
|
|
1643
|
+
"officeparser@7.8.0|strtok3@10.3.5",
|
|
1644
|
+
"officeparser@7.8.0|token-types@6.1.2",
|
|
1645
|
+
"officeparser@7.8.0|uint8array-extras@1.5.0"
|
|
1646
1646
|
]
|
|
1647
1647
|
},
|
|
1648
1648
|
{
|
|
1649
|
-
"ref": "officeparser@7.
|
|
1649
|
+
"ref": "officeparser@7.8.0|pdfjs-dist@6.1.200",
|
|
1650
1650
|
"dependsOn": [
|
|
1651
|
-
"officeparser@7.
|
|
1651
|
+
"officeparser@7.8.0|@napi-rs/canvas@1.0.1"
|
|
1652
1652
|
]
|
|
1653
1653
|
},
|
|
1654
1654
|
{
|
|
1655
|
-
"ref": "officeparser@7.
|
|
1655
|
+
"ref": "officeparser@7.8.0|tesseract.js@7.0.0",
|
|
1656
1656
|
"dependsOn": [
|
|
1657
|
-
"officeparser@7.
|
|
1658
|
-
"officeparser@7.
|
|
1659
|
-
"officeparser@7.
|
|
1660
|
-
"officeparser@7.
|
|
1661
|
-
"officeparser@7.
|
|
1662
|
-
"officeparser@7.
|
|
1663
|
-
"officeparser@7.
|
|
1664
|
-
"officeparser@7.
|
|
1665
|
-
"officeparser@7.
|
|
1657
|
+
"officeparser@7.8.0|bmp-js@0.1.0",
|
|
1658
|
+
"officeparser@7.8.0|idb-keyval@6.2.2",
|
|
1659
|
+
"officeparser@7.8.0|is-url@1.2.4",
|
|
1660
|
+
"officeparser@7.8.0|node-fetch@2.7.0",
|
|
1661
|
+
"officeparser@7.8.0|opencollective-postinstall@2.0.3",
|
|
1662
|
+
"officeparser@7.8.0|regenerator-runtime@0.13.11",
|
|
1663
|
+
"officeparser@7.8.0|tesseract.js-core@7.0.0",
|
|
1664
|
+
"officeparser@7.8.0|wasm-feature-detect@1.8.0",
|
|
1665
|
+
"officeparser@7.8.0|zlibjs@0.3.1"
|
|
1666
1666
|
]
|
|
1667
1667
|
},
|
|
1668
1668
|
{
|
|
1669
|
-
"ref": "officeparser@7.
|
|
1669
|
+
"ref": "officeparser@7.8.0|@tokenizer/inflate@0.4.1",
|
|
1670
1670
|
"dependsOn": [
|
|
1671
|
-
"officeparser@7.
|
|
1672
|
-
"officeparser@7.
|
|
1671
|
+
"officeparser@7.8.0|debug@4.4.3",
|
|
1672
|
+
"officeparser@7.8.0|token-types@6.1.2"
|
|
1673
1673
|
]
|
|
1674
1674
|
},
|
|
1675
1675
|
{
|
|
1676
|
-
"ref": "officeparser@7.
|
|
1676
|
+
"ref": "officeparser@7.8.0|strtok3@10.3.5",
|
|
1677
1677
|
"dependsOn": [
|
|
1678
|
-
"officeparser@7.
|
|
1678
|
+
"officeparser@7.8.0|@tokenizer/token@0.3.0"
|
|
1679
1679
|
]
|
|
1680
1680
|
},
|
|
1681
1681
|
{
|
|
1682
|
-
"ref": "officeparser@7.
|
|
1682
|
+
"ref": "officeparser@7.8.0|token-types@6.1.2",
|
|
1683
1683
|
"dependsOn": [
|
|
1684
|
-
"officeparser@7.
|
|
1685
|
-
"officeparser@7.
|
|
1686
|
-
"officeparser@7.
|
|
1684
|
+
"officeparser@7.8.0|@borewit/text-codec@0.2.2",
|
|
1685
|
+
"officeparser@7.8.0|@tokenizer/token@0.3.0",
|
|
1686
|
+
"officeparser@7.8.0|ieee754@1.2.1"
|
|
1687
1687
|
]
|
|
1688
1688
|
},
|
|
1689
1689
|
{
|
|
1690
|
-
"ref": "officeparser@7.
|
|
1690
|
+
"ref": "officeparser@7.8.0|uint8array-extras@1.5.0"
|
|
1691
1691
|
},
|
|
1692
1692
|
{
|
|
1693
|
-
"ref": "officeparser@7.
|
|
1693
|
+
"ref": "officeparser@7.8.0|@napi-rs/canvas@1.0.1",
|
|
1694
1694
|
"dependsOn": [
|
|
1695
|
-
"officeparser@7.
|
|
1695
|
+
"officeparser@7.8.0|@napi-rs/canvas-linux-x64-gnu@1.0.1"
|
|
1696
1696
|
]
|
|
1697
1697
|
},
|
|
1698
1698
|
{
|
|
1699
|
-
"ref": "officeparser@7.
|
|
1699
|
+
"ref": "officeparser@7.8.0|bmp-js@0.1.0"
|
|
1700
1700
|
},
|
|
1701
1701
|
{
|
|
1702
|
-
"ref": "officeparser@7.
|
|
1702
|
+
"ref": "officeparser@7.8.0|idb-keyval@6.2.2"
|
|
1703
1703
|
},
|
|
1704
1704
|
{
|
|
1705
|
-
"ref": "officeparser@7.
|
|
1705
|
+
"ref": "officeparser@7.8.0|is-url@1.2.4"
|
|
1706
1706
|
},
|
|
1707
1707
|
{
|
|
1708
|
-
"ref": "officeparser@7.
|
|
1708
|
+
"ref": "officeparser@7.8.0|node-fetch@2.7.0",
|
|
1709
1709
|
"dependsOn": [
|
|
1710
|
-
"officeparser@7.
|
|
1710
|
+
"officeparser@7.8.0|whatwg-url@5.0.0"
|
|
1711
1711
|
]
|
|
1712
1712
|
},
|
|
1713
1713
|
{
|
|
1714
|
-
"ref": "officeparser@7.
|
|
1714
|
+
"ref": "officeparser@7.8.0|opencollective-postinstall@2.0.3"
|
|
1715
1715
|
},
|
|
1716
1716
|
{
|
|
1717
|
-
"ref": "officeparser@7.
|
|
1717
|
+
"ref": "officeparser@7.8.0|regenerator-runtime@0.13.11"
|
|
1718
1718
|
},
|
|
1719
1719
|
{
|
|
1720
|
-
"ref": "officeparser@7.
|
|
1720
|
+
"ref": "officeparser@7.8.0|tesseract.js-core@7.0.0"
|
|
1721
1721
|
},
|
|
1722
1722
|
{
|
|
1723
|
-
"ref": "officeparser@7.
|
|
1723
|
+
"ref": "officeparser@7.8.0|wasm-feature-detect@1.8.0"
|
|
1724
1724
|
},
|
|
1725
1725
|
{
|
|
1726
|
-
"ref": "officeparser@7.
|
|
1726
|
+
"ref": "officeparser@7.8.0|zlibjs@0.3.1"
|
|
1727
1727
|
},
|
|
1728
1728
|
{
|
|
1729
|
-
"ref": "officeparser@7.
|
|
1729
|
+
"ref": "officeparser@7.8.0|debug@4.4.3",
|
|
1730
1730
|
"dependsOn": [
|
|
1731
|
-
"officeparser@7.
|
|
1731
|
+
"officeparser@7.8.0|ms@2.1.3"
|
|
1732
1732
|
]
|
|
1733
1733
|
},
|
|
1734
1734
|
{
|
|
1735
|
-
"ref": "officeparser@7.
|
|
1735
|
+
"ref": "officeparser@7.8.0|@tokenizer/token@0.3.0"
|
|
1736
1736
|
},
|
|
1737
1737
|
{
|
|
1738
|
-
"ref": "officeparser@7.
|
|
1738
|
+
"ref": "officeparser@7.8.0|@borewit/text-codec@0.2.2"
|
|
1739
1739
|
},
|
|
1740
1740
|
{
|
|
1741
|
-
"ref": "officeparser@7.
|
|
1741
|
+
"ref": "officeparser@7.8.0|ieee754@1.2.1"
|
|
1742
1742
|
},
|
|
1743
1743
|
{
|
|
1744
|
-
"ref": "officeparser@7.
|
|
1744
|
+
"ref": "officeparser@7.8.0|@napi-rs/canvas-linux-x64-gnu@1.0.1"
|
|
1745
1745
|
},
|
|
1746
1746
|
{
|
|
1747
|
-
"ref": "officeparser@7.
|
|
1747
|
+
"ref": "officeparser@7.8.0|whatwg-url@5.0.0",
|
|
1748
1748
|
"dependsOn": [
|
|
1749
|
-
"officeparser@7.
|
|
1750
|
-
"officeparser@7.
|
|
1749
|
+
"officeparser@7.8.0|tr46@0.0.3",
|
|
1750
|
+
"officeparser@7.8.0|webidl-conversions@3.0.1"
|
|
1751
1751
|
]
|
|
1752
1752
|
},
|
|
1753
1753
|
{
|
|
1754
|
-
"ref": "officeparser@7.
|
|
1754
|
+
"ref": "officeparser@7.8.0|ms@2.1.3"
|
|
1755
1755
|
},
|
|
1756
1756
|
{
|
|
1757
|
-
"ref": "officeparser@7.
|
|
1757
|
+
"ref": "officeparser@7.8.0|tr46@0.0.3"
|
|
1758
1758
|
},
|
|
1759
1759
|
{
|
|
1760
|
-
"ref": "officeparser@7.
|
|
1760
|
+
"ref": "officeparser@7.8.0|webidl-conversions@3.0.1"
|
|
1761
1761
|
}
|
|
1762
1762
|
]
|
|
1763
1763
|
}
|
package/dist/types.d.ts
CHANGED
|
@@ -413,6 +413,18 @@ export interface HtmlParserConfig {
|
|
|
413
413
|
* Defaults to false.
|
|
414
414
|
*/
|
|
415
415
|
preserveIframes?: boolean | string[];
|
|
416
|
+
/**
|
|
417
|
+
* Import ambiguous "folk" embed forms in Markdown as embeds: a standalone Obsidian-style image
|
|
418
|
+
* whose URL is a YouTube link (``), and the clickable
|
|
419
|
+
* thumbnail-link (`[](watch-url)`). Both become a
|
|
420
|
+
* `embedType: 'youtube'` embed (rendered from the validated id, so it is safe). Off by default:
|
|
421
|
+
* auto-upgrading an image/link to an embed is a heuristic that could mangle a genuinely-intended
|
|
422
|
+
* image link, so a consumer opts in. The unambiguous forms (`<div data-youtube-video>`, a bare
|
|
423
|
+
* YouTube `<iframe>`, the `::youtube` directive) are always recognized, independent of this flag.
|
|
424
|
+
*
|
|
425
|
+
* Defaults to false.
|
|
426
|
+
*/
|
|
427
|
+
embedFolkForms?: boolean;
|
|
416
428
|
}
|
|
417
429
|
/**
|
|
418
430
|
* Maps an input format string to its corresponding format-specific parser configuration, mirroring
|
|
@@ -909,6 +921,15 @@ export interface HtmlGeneratorConfig {
|
|
|
909
921
|
* `HtmlParser` reads every shape this emits, so output stays self-round-trippable.
|
|
910
922
|
*/
|
|
911
923
|
sourceAttributes?: boolean;
|
|
924
|
+
/**
|
|
925
|
+
* Emit a generic (non-YouTube) iframe embed as a gated placeholder,
|
|
926
|
+
* `<div data-embed-gated data-embed-src="…" …>`, instead of a live `<iframe>`. The gated shape
|
|
927
|
+
* never auto-loads its src: an editor renders a click-to-load placeholder from it, and
|
|
928
|
+
* `HtmlParser` reads it back to the same `embed` node. The src is scheme-checked (`sanitizeUrl`)
|
|
929
|
+
* on emit. Off by default; the default output (a live `<iframe>`) is unchanged. YouTube embeds
|
|
930
|
+
* are unaffected (they already render from a validated id).
|
|
931
|
+
*/
|
|
932
|
+
gatedEmbeds?: boolean;
|
|
912
933
|
}
|
|
913
934
|
/**
|
|
914
935
|
* Configuration options for PDF generation.
|
|
@@ -1082,6 +1103,20 @@ export type CitationSyntax = 'at' | 'none';
|
|
|
1082
1103
|
export type WikilinkSyntax = 'double-bracket' | 'none';
|
|
1083
1104
|
/** `{width=50%}` attribute lists (`'brace'`), or `'none'`. */
|
|
1084
1105
|
export type AttributeListSyntax = 'brace' | 'none';
|
|
1106
|
+
/**
|
|
1107
|
+
* How an `embed` node is written to Markdown:
|
|
1108
|
+
* - `'html'` (default): the single-line `<div data-youtube-video="ID">` / `<iframe src=...>` block
|
|
1109
|
+
* this library has always emitted. Round-trips through officeParser, but renders as an invisible
|
|
1110
|
+
* empty box on GitHub.
|
|
1111
|
+
* - `'directive'`: a remark-directive leaf, `::youtube[Label]{id=... width=... align=...}` /
|
|
1112
|
+
* `::embed[Label]{src=... width=... height=... align=...}`. Round-trips within an editor that
|
|
1113
|
+
* understands it; renders verbatim (not just the label) on GitHub, so it is an editor format, not
|
|
1114
|
+
* a GitHub-interop one.
|
|
1115
|
+
* - `'link'`: a plain `[YouTube](url)` / `[Embed](url)`.
|
|
1116
|
+
* - `'thumbnail'`: a YouTube-only clickable thumbnail `[](watch)`,
|
|
1117
|
+
* the best GitHub degrade; a non-YouTube embed falls back to `'link'`.
|
|
1118
|
+
*/
|
|
1119
|
+
export type EmbedSyntax = 'html' | 'directive' | 'link' | 'thumbnail';
|
|
1085
1120
|
/**
|
|
1086
1121
|
* @deprecated Legacy flavor names for `MarkdownDialectConfig.admonitions`. Use the syntax names
|
|
1087
1122
|
* instead: `'github'` -> `'blockquote'`, `'gitlab'` -> `'fence'`, `'pandoc'` -> `'fence-attribute'`.
|
|
@@ -1168,6 +1203,13 @@ export interface MarkdownDialectConfig {
|
|
|
1168
1203
|
/** Table syntax: native GFM pipe tables, or forced HTML `<table>` (required for strict
|
|
1169
1204
|
* CommonMark, which has no table syntax of its own). */
|
|
1170
1205
|
tables?: 'native' | 'html';
|
|
1206
|
+
/**
|
|
1207
|
+
* How an `embed` node is written to Markdown (`'html'` | `'directive'` | `'link'` |
|
|
1208
|
+
* `'thumbnail'`; see `EmbedSyntax`). This is the authority for embed form. When omitted, the
|
|
1209
|
+
* deprecated `fallbackToHtml.embeds` boolean is honored (`true`/unset maps to `'html'`, `false`
|
|
1210
|
+
* to `'link'`), then the default `'html'`.
|
|
1211
|
+
*/
|
|
1212
|
+
embeds?: EmbedSyntax;
|
|
1171
1213
|
}
|
|
1172
1214
|
/**
|
|
1173
1215
|
* Granular control over when the Markdown generator falls back to raw HTML tags for features
|
|
@@ -1184,7 +1226,12 @@ export interface FallbackToHtmlConfig {
|
|
|
1184
1226
|
anchors?: boolean;
|
|
1185
1227
|
/** Nested-table and merged-cell (colspan/rowspan) HTML `<table>` fallback. */
|
|
1186
1228
|
tables?: boolean;
|
|
1187
|
-
/**
|
|
1229
|
+
/**
|
|
1230
|
+
* YouTube embed `<div data-youtube-video>` vs. a plain link.
|
|
1231
|
+
* @deprecated Use `mdConfig.dialect.embeds` (`EmbedSyntax`) instead, which also selects the
|
|
1232
|
+
* `'directive'` and `'thumbnail'` forms. When `dialect.embeds` is unset this boolean is still
|
|
1233
|
+
* honored (`true` maps to `'html'`, `false` to `'link'`); it will be removed in the next major.
|
|
1234
|
+
*/
|
|
1188
1235
|
embeds?: boolean;
|
|
1189
1236
|
/** Multi-line table cell content joined with `<br>` instead of a space. */
|
|
1190
1237
|
cellLineBreaks?: boolean;
|
|
@@ -1804,10 +1851,13 @@ export interface EmbedMetadata {
|
|
|
1804
1851
|
url?: string;
|
|
1805
1852
|
/** Display width, as a CSS length or percentage. */
|
|
1806
1853
|
width?: string;
|
|
1807
|
-
/** Display height, as a CSS length or percentage
|
|
1854
|
+
/** Display height, as a CSS length or percentage. */
|
|
1808
1855
|
height?: string;
|
|
1809
1856
|
/** Layout alignment of the embed. */
|
|
1810
1857
|
align?: 'left' | 'center' | 'right';
|
|
1858
|
+
/** Human-readable label for the embed (e.g. the `[Label]` of a `::youtube[Label]{...}` leaf
|
|
1859
|
+
* directive, or a gated embed's caption). Purely descriptive; never a trust or render input. */
|
|
1860
|
+
label?: string;
|
|
1811
1861
|
}
|
|
1812
1862
|
/**
|
|
1813
1863
|
* Metadata for an admonition/alert node (e.g. GitHub's `> [!NOTE]` or GLFM's `:::note`).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "officeparser",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.8.0",
|
|
4
4
|
"description": "A robust, strictly-typed Node.js and Browser library for parsing office files (.docx, .pptx, .xlsx, .odt, .odp, .ods, .pdf, .rtf, .csv, .md, .html, .epub) and generating high-fidelity outputs in Markdown, HTML, CSV, RTF, PDF, EPUB, and RAG-focused chunks.",
|
|
5
5
|
"funding": "https://github.com/sponsors/harshankur",
|
|
6
6
|
"main": "dist/index.js",
|