@adobe/helix-importer 2.5.15 → 2.6.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/CHANGELOG.md +14 -0
- package/package.json +7 -7
- package/src/importer/HTML2x.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [2.6.0](https://github.com/adobe/helix-importer/compare/v2.5.16...v2.6.0) (2023-01-31)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* transform can be async ([#88](https://github.com/adobe/helix-importer/issues/88)) ([9441e0e](https://github.com/adobe/helix-importer/commit/9441e0e8494d4f3c49a62712144e8082f85e2320))
|
|
7
|
+
|
|
8
|
+
## [2.5.16](https://github.com/adobe/helix-importer/compare/v2.5.15...v2.5.16) (2023-01-29)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **deps:** update dependency @adobe/helix-md2docx to v2.0.37 ([#87](https://github.com/adobe/helix-importer/issues/87)) ([3bf2160](https://github.com/adobe/helix-importer/commit/3bf2160ddd7ca94eabfa5be5a53f4b1214040f97))
|
|
14
|
+
|
|
1
15
|
## [2.5.15](https://github.com/adobe/helix-importer/compare/v2.5.14...v2.5.15) (2023-01-28)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/helix-importer",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.0",
|
|
4
4
|
"description": "Helix Importer tool: create md / docx from html",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@adobe/eslint-config-helix": "2.0.1",
|
|
29
|
-
"@adobe/helix-docx2md": "1.3.
|
|
30
|
-
"@adobe/helix-mediahandler": "2.0.
|
|
29
|
+
"@adobe/helix-docx2md": "1.3.13",
|
|
30
|
+
"@adobe/helix-mediahandler": "2.0.4",
|
|
31
31
|
"@semantic-release/changelog": "6.0.2",
|
|
32
32
|
"@semantic-release/exec": "6.0.3",
|
|
33
33
|
"@semantic-release/git": "10.0.1",
|
|
@@ -43,10 +43,10 @@
|
|
|
43
43
|
},
|
|
44
44
|
"license": "Apache-2.0",
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@adobe/helix-markdown-support": "6.1.
|
|
47
|
-
"@adobe/helix-md2docx": "2.0.
|
|
48
|
-
"@adobe/mdast-util-gridtables": "1.0.
|
|
49
|
-
"@adobe/remark-gridtables": "1.0.
|
|
46
|
+
"@adobe/helix-markdown-support": "6.1.1",
|
|
47
|
+
"@adobe/helix-md2docx": "2.0.37",
|
|
48
|
+
"@adobe/mdast-util-gridtables": "1.0.6",
|
|
49
|
+
"@adobe/remark-gridtables": "1.0.2",
|
|
50
50
|
"form-data": "4.0.0",
|
|
51
51
|
"fs-extra": "11.1.0",
|
|
52
52
|
"hast-util-to-mdast": "9.0.0",
|
package/src/importer/HTML2x.js
CHANGED
|
@@ -79,7 +79,7 @@ async function html2x(
|
|
|
79
79
|
// for more advanced use cases, give access to the original dom with
|
|
80
80
|
// no preprocessing at all
|
|
81
81
|
if (transformer.preprocess) {
|
|
82
|
-
transformer.preprocess({
|
|
82
|
+
await transformer.preprocess({
|
|
83
83
|
url,
|
|
84
84
|
document: doc,
|
|
85
85
|
html: doc.documentElement.outerHTML,
|
|
@@ -99,7 +99,7 @@ async function html2x(
|
|
|
99
99
|
|
|
100
100
|
async process(document) {
|
|
101
101
|
if (transformer.transform) {
|
|
102
|
-
let results = transformer.transform({
|
|
102
|
+
let results = await transformer.transform({
|
|
103
103
|
url,
|
|
104
104
|
document,
|
|
105
105
|
html,
|