@adobe/helix-docx2md 1.0.10 → 1.0.13
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 +21 -0
- package/package.json +10 -10
- package/src/dast2mdast/handlers/paragraph.js +4 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
## [1.0.13](https://github.com/adobe/helix-docx2md/compare/v1.0.12...v1.0.13) (2022-05-10)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* subscript lost in tables ([6c74574](https://github.com/adobe/helix-docx2md/commit/6c745743f00125f19b39d5c9c37990ab192aa22e)), closes [#57](https://github.com/adobe/helix-docx2md/issues/57)
|
|
7
|
+
|
|
8
|
+
## [1.0.12](https://github.com/adobe/helix-docx2md/compare/v1.0.11...v1.0.12) (2022-05-03)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **deps:** update dependency @adobe/helix-shared-process-queue to v1.1.5 ([88e002f](https://github.com/adobe/helix-docx2md/commit/88e002f3756afb7aa75087b7e4899ad688e457f2))
|
|
14
|
+
|
|
15
|
+
## [1.0.11](https://github.com/adobe/helix-docx2md/compare/v1.0.10...v1.0.11) (2022-04-13)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* handle list paragraphs with no style correctly ([#49](https://github.com/adobe/helix-docx2md/issues/49)) ([5f9ab2c](https://github.com/adobe/helix-docx2md/commit/5f9ab2cce0cd8397f0f4e8dd0cfe9f58b7e00c36))
|
|
21
|
+
|
|
1
22
|
## [1.0.10](https://github.com/adobe/helix-docx2md/compare/v1.0.9...v1.0.10) (2022-03-18)
|
|
2
23
|
|
|
3
24
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/helix-docx2md",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.13",
|
|
4
4
|
"description": "Helix library that converts word documents to markdown",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.js",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
},
|
|
35
35
|
"homepage": "https://github.com/adobe/helix-docx2md#readme",
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@adobe/helix-markdown-support": "3.1.
|
|
38
|
-
"@adobe/helix-shared-process-queue": "1.1.
|
|
37
|
+
"@adobe/helix-markdown-support": "3.1.3",
|
|
38
|
+
"@adobe/helix-shared-process-queue": "1.1.5",
|
|
39
39
|
"@adobe/mammoth": "1.4.15-bleeding.1",
|
|
40
40
|
"dirname-filename-esm": "1.1.1",
|
|
41
41
|
"mdast-util-to-markdown": "1.3.0",
|
|
@@ -50,20 +50,20 @@
|
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@adobe/eslint-config-helix": "1.3.2",
|
|
53
|
-
"@adobe/helix-mediahandler": "1.0.
|
|
53
|
+
"@adobe/helix-mediahandler": "1.0.22",
|
|
54
54
|
"@semantic-release/changelog": "6.0.1",
|
|
55
55
|
"@semantic-release/exec": "6.0.3",
|
|
56
56
|
"@semantic-release/git": "10.0.1",
|
|
57
|
-
"c8": "7.11.
|
|
57
|
+
"c8": "7.11.2",
|
|
58
58
|
"codecov": "3.8.3",
|
|
59
59
|
"dotenv": "16.0.0",
|
|
60
|
-
"eslint": "8.
|
|
60
|
+
"eslint": "8.15.0",
|
|
61
61
|
"eslint-plugin-header": "3.1.1",
|
|
62
|
-
"eslint-plugin-import": "2.
|
|
63
|
-
"husky": "
|
|
62
|
+
"eslint-plugin-import": "2.26.0",
|
|
63
|
+
"husky": "8.0.1",
|
|
64
64
|
"junit-report-builder": "3.0.0",
|
|
65
|
-
"lint-staged": "12.
|
|
66
|
-
"mocha": "
|
|
65
|
+
"lint-staged": "12.4.1",
|
|
66
|
+
"mocha": "10.0.0",
|
|
67
67
|
"mocha-multi-reporters": "1.5.1",
|
|
68
68
|
"semantic-release": "19.0.2",
|
|
69
69
|
"unist-util-inspect": "7.0.0"
|
|
@@ -51,11 +51,10 @@ function getHeadingDepth(node) {
|
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
function isListParagraph(node) {
|
|
54
|
-
const { styleId, styleName } = node;
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
return styleName && styleName.toLowerCase() === 'list paragraph';
|
|
54
|
+
const { styleId, styleName, numbering } = node;
|
|
55
|
+
return styleId === 'ListParagraph'
|
|
56
|
+
|| (styleName && styleName.toLowerCase() === 'list paragraph')
|
|
57
|
+
|| (numbering && 'numId' in numbering);
|
|
59
58
|
}
|
|
60
59
|
|
|
61
60
|
function isCodeBlock(node) {
|