@adobe/helix-docx2md 1.4.1 → 1.4.3

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.4.3](https://github.com/adobe/helix-docx2md/compare/v1.4.2...v1.4.3) (2023-05-16)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * documents with tracked changes not properly rendered ([#234](https://github.com/adobe/helix-docx2md/issues/234)) ([6c8fbdf](https://github.com/adobe/helix-docx2md/commit/6c8fbdf08e2f4d13d077015d4e63d80723b7f089)), closes [#232](https://github.com/adobe/helix-docx2md/issues/232)
7
+
8
+ ## [1.4.2](https://github.com/adobe/helix-docx2md/compare/v1.4.1...v1.4.2) (2023-05-13)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **deps:** update adobe fixes ([96a0782](https://github.com/adobe/helix-docx2md/commit/96a0782ac0df5ebd133764f0da6f5e2ee06195ad))
14
+
1
15
  ## [1.4.1](https://github.com/adobe/helix-docx2md/compare/v1.4.0...v1.4.1) (2023-03-27)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-docx2md",
3
- "version": "1.4.1",
3
+ "version": "1.4.3",
4
4
  "description": "Helix library that converts word documents to markdown",
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
@@ -33,15 +33,15 @@
33
33
  },
34
34
  "homepage": "https://github.com/adobe/helix-docx2md#readme",
35
35
  "dependencies": {
36
- "@adobe/helix-markdown-support": "6.1.1",
36
+ "@adobe/helix-markdown-support": "6.1.2",
37
37
  "@adobe/helix-shared-process-queue": "3.0.0",
38
- "@adobe/mammoth": "1.5.1-bleeding.1",
38
+ "@adobe/mammoth": "1.5.1-bleeding.2",
39
39
  "@adobe/mdast-util-gridtables": "1.0.6",
40
40
  "@adobe/remark-gridtables": "1.0.2",
41
41
  "dirname-filename-esm": "1.1.1",
42
42
  "github-slugger": "2.0.0",
43
43
  "mdast-util-to-markdown": "1.5.0",
44
- "mdast-util-to-string": "3.1.1",
44
+ "mdast-util-to-string": "3.2.0",
45
45
  "remark-gfm": "3.0.1",
46
46
  "remark-parse": "10.0.1",
47
47
  "remark-stringify": "10.0.2",
@@ -52,19 +52,19 @@
52
52
  },
53
53
  "devDependencies": {
54
54
  "@adobe/eslint-config-helix": "2.0.2",
55
- "@adobe/helix-mediahandler": "2.0.17",
55
+ "@adobe/helix-mediahandler": "2.1.10",
56
56
  "@semantic-release/changelog": "6.0.3",
57
57
  "@semantic-release/exec": "6.0.3",
58
58
  "@semantic-release/git": "10.0.1",
59
59
  "c8": "7.13.0",
60
60
  "dotenv": "16.0.3",
61
- "eslint": "8.36.0",
61
+ "eslint": "8.40.0",
62
62
  "husky": "8.0.3",
63
63
  "junit-report-builder": "3.0.1",
64
- "lint-staged": "13.2.0",
64
+ "lint-staged": "13.2.2",
65
65
  "mocha": "10.2.0",
66
66
  "mocha-multi-reporters": "1.5.1",
67
- "semantic-release": "20.1.3",
67
+ "semantic-release": "21.0.2",
68
68
  "unist-util-inspect": "7.0.2"
69
69
  },
70
70
  "lint-staged": {
@@ -12,10 +12,14 @@
12
12
  import all from '../all.js';
13
13
 
14
14
  export default function hyperlink(h, node) {
15
+ const nodes = all(h, node);
16
+ if (!nodes.length) {
17
+ return null;
18
+ }
15
19
  const link = h('link', {
16
20
  url: node.href || '',
17
21
  title: node.title,
18
- }, all(h, node));
22
+ }, nodes);
19
23
 
20
24
  // document internal links will have an `anchor` property and are managed as bookmarks
21
25
  // after the document is processed, the uris will be adjusted to point to the correct bookmark id.