@adobe/helix-docx2md 1.6.6 → 1.6.8

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/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## [1.6.8](https://github.com/adobe/helix-docx2md/compare/v1.6.7...v1.6.8) (2024-09-30)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * remove empty list items with no bullet ([970b6a0](https://github.com/adobe/helix-docx2md/commit/970b6a0e91b94b7c194f6146a4fb6353d89f377a)), closes [#534](https://github.com/adobe/helix-docx2md/issues/534)
7
+
8
+ ## [1.6.7](https://github.com/adobe/helix-docx2md/compare/v1.6.6...v1.6.7) (2024-09-27)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **deps:** update dependency @adobe/helix-markdown-support to v7.1.6 ([#531](https://github.com/adobe/helix-docx2md/issues/531)) ([9f86773](https://github.com/adobe/helix-docx2md/commit/9f86773668ab7ab771f8204d73ecc4fb80fe07be))
14
+
1
15
  ## [1.6.6](https://github.com/adobe/helix-docx2md/compare/v1.6.5...v1.6.6) (2024-08-31)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-docx2md",
3
- "version": "1.6.6",
3
+ "version": "1.6.8",
4
4
  "description": "Helix library that converts word documents to markdown",
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
@@ -34,7 +34,7 @@
34
34
  },
35
35
  "homepage": "https://github.com/adobe/helix-docx2md#readme",
36
36
  "dependencies": {
37
- "@adobe/helix-markdown-support": "7.1.5",
37
+ "@adobe/helix-markdown-support": "7.1.6",
38
38
  "@adobe/helix-shared-process-queue": "3.0.4",
39
39
  "@adobe/mammoth": "1.7.1-bleeding.2",
40
40
  "@adobe/mdast-util-gridtables": "4.0.6",
@@ -52,23 +52,23 @@
52
52
  "yauzl": "3.1.3"
53
53
  },
54
54
  "devDependencies": {
55
- "@adobe/eslint-config-helix": "2.0.6",
56
- "@adobe/helix-admin-support": "2.9.3",
57
- "@adobe/helix-mediahandler": "2.5.19",
58
- "@adobe/helix-onedrive-support": "11.5.13",
59
- "@adobe/helix-shared-tokencache": "1.4.29",
55
+ "@adobe/eslint-config-helix": "2.0.7",
56
+ "@adobe/helix-admin-support": "2.9.12",
57
+ "@adobe/helix-mediahandler": "2.5.23",
58
+ "@adobe/helix-onedrive-support": "11.5.18",
59
+ "@adobe/helix-shared-tokencache": "1.4.34",
60
60
  "@semantic-release/changelog": "6.0.3",
61
61
  "@semantic-release/exec": "6.0.3",
62
62
  "@semantic-release/git": "10.0.1",
63
63
  "c8": "10.1.2",
64
64
  "dotenv": "16.4.5",
65
- "eslint": "8.57.0",
66
- "husky": "9.1.5",
67
- "junit-report-builder": "5.0.0",
68
- "lint-staged": "15.2.9",
65
+ "eslint": "8.57.1",
66
+ "husky": "9.1.6",
67
+ "junit-report-builder": "5.1.1",
68
+ "lint-staged": "15.2.10",
69
69
  "mocha": "10.7.3",
70
70
  "mocha-multi-reporters": "1.5.1",
71
- "semantic-release": "24.1.0",
71
+ "semantic-release": "24.1.2",
72
72
  "unist-util-inspect": "8.1.0"
73
73
  },
74
74
  "lint-staged": {
@@ -201,6 +201,10 @@ export default function paragraph(h, node, parent, siblings) {
201
201
  const [lists] = h.listContainers;
202
202
  if (isListParagraph(node)) {
203
203
  const numbering = node.numbering || {};
204
+ if (nodes.length === 0 && !('numId' in numbering)) {
205
+ return undefined;
206
+ }
207
+
204
208
  const { numId = 0, isOrdered = false, level = '0' } = numbering;
205
209
  const lvl = Number.parseInt(level, 10);
206
210
  const listProps = {