@adobe/helix-docx2md 1.7.0 → 1.8.1

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.8.1](https://github.com/adobe/helix-docx2md/compare/v1.8.0...v1.8.1) (2025-10-06)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * use * for emphasis ([#704](https://github.com/adobe/helix-docx2md/issues/704)) ([fe2779d](https://github.com/adobe/helix-docx2md/commit/fe2779d997c3b3ab9e6cb7f0f02fef4f66cc89ff)), closes [#551](https://github.com/adobe/helix-docx2md/issues/551)
7
+
8
+ # [1.8.0](https://github.com/adobe/helix-docx2md/compare/v1.7.0...v1.8.0) (2025-08-29)
9
+
10
+
11
+ ### Features
12
+
13
+ * include imagge number in error ([#693](https://github.com/adobe/helix-docx2md/issues/693)) ([18fb16b](https://github.com/adobe/helix-docx2md/commit/18fb16b8d7b890f646571710f8762aeefaa24c5c))
14
+
1
15
  # [1.7.0](https://github.com/adobe/helix-docx2md/compare/v1.6.29...v1.7.0) (2025-08-26)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-docx2md",
3
- "version": "1.7.0",
3
+ "version": "1.8.1",
4
4
  "description": "Helix library that converts word documents to markdown",
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
@@ -52,24 +52,24 @@
52
52
  "yauzl": "3.2.0"
53
53
  },
54
54
  "devDependencies": {
55
- "@adobe/eslint-config-helix": "3.0.9",
56
- "@adobe/helix-admin-support": "3.3.18",
57
- "@adobe/helix-mediahandler": "2.8.1",
58
- "@adobe/helix-onedrive-support": "12.0.28",
55
+ "@adobe/eslint-config-helix": "3.0.10",
56
+ "@adobe/helix-admin-support": "3.4.1",
57
+ "@adobe/helix-mediahandler": "2.9.2",
58
+ "@adobe/helix-onedrive-support": "12.0.29",
59
59
  "@adobe/helix-shared-tokencache": "1.5.0",
60
60
  "@eslint/config-helpers": "0.3.1",
61
61
  "@semantic-release/changelog": "6.0.3",
62
62
  "@semantic-release/exec": "7.1.0",
63
63
  "@semantic-release/git": "10.0.1",
64
64
  "c8": "10.1.3",
65
- "dotenv": "17.2.1",
65
+ "dotenv": "17.2.2",
66
66
  "eslint": "9.4.0",
67
67
  "husky": "9.1.7",
68
68
  "junit-report-builder": "5.1.1",
69
- "lint-staged": "16.1.5",
70
- "mocha": "11.7.1",
69
+ "lint-staged": "16.1.6",
70
+ "mocha": "11.7.2",
71
71
  "mocha-multi-reporters": "1.5.1",
72
- "semantic-release": "24.2.7",
72
+ "semantic-release": "24.2.8",
73
73
  "unist-util-inspect": "8.1.0"
74
74
  },
75
75
  "lint-staged": {
@@ -73,6 +73,7 @@ export default async function processImages(log, tree, blobHandler, source, list
73
73
  node,
74
74
  index,
75
75
  parent,
76
+ nr: images.length,
76
77
  });
77
78
  }
78
79
  }
@@ -80,7 +81,7 @@ export default async function processImages(log, tree, blobHandler, source, list
80
81
  });
81
82
 
82
83
  // upload images
83
- await processQueue(images, async ({ node }) => {
84
+ await processQueue(images, async ({ node, nr }) => {
84
85
  let blob;
85
86
 
86
87
  // process inlined images first
@@ -90,9 +91,10 @@ export default async function processImages(log, tree, blobHandler, source, list
90
91
  blob = await getBlob(blobHandler, data, node.contentType, source);
91
92
  } catch (e) {
92
93
  if (listener) {
94
+ e.imageIndex = nr;
93
95
  listener('onImageUploadError', e);
94
96
  }
95
- log.error('Error reading blob data:', e.message);
97
+ log.error('[%d] Error reading blob data %s', nr, e.message);
96
98
  node.url = 'about:error';
97
99
  return;
98
100
  }
@@ -51,7 +51,7 @@ export default async function mdast2md(mdast, opts = {}) {
51
51
  const processor = unified()
52
52
  .use(stringify, {
53
53
  strong: '*',
54
- emphasis: '_',
54
+ emphasis: '*',
55
55
  bullet: '-',
56
56
  fence: '`',
57
57
  fences: true,