@adobe/helix-docx2md 1.3.1 → 1.3.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.3.3](https://github.com/adobe/helix-docx2md/compare/v1.3.2...v1.3.3) (2022-11-03)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* use adobe gridtables ([#147](https://github.com/adobe/helix-docx2md/issues/147)) ([f7b5542](https://github.com/adobe/helix-docx2md/commit/f7b5542f16b01316f54b8d28734bf7b9a6188cf1)), closes [#146](https://github.com/adobe/helix-docx2md/issues/146)
|
|
7
|
+
|
|
8
|
+
## [1.3.2](https://github.com/adobe/helix-docx2md/compare/v1.3.1...v1.3.2) (2022-10-31)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **deps:** update dependency github-slugger to v2 ([#145](https://github.com/adobe/helix-docx2md/issues/145)) ([4de3c50](https://github.com/adobe/helix-docx2md/commit/4de3c5055dd9fd463e26a8bfd53b460958fa4628))
|
|
14
|
+
|
|
1
15
|
## [1.3.1](https://github.com/adobe/helix-docx2md/compare/v1.3.0...v1.3.1) (2022-10-29)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/helix-docx2md",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.3",
|
|
4
4
|
"description": "Helix library that converts word documents to markdown",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.js",
|
|
@@ -36,8 +36,10 @@
|
|
|
36
36
|
"@adobe/helix-markdown-support": "5.0.10",
|
|
37
37
|
"@adobe/helix-shared-process-queue": "1.1.5",
|
|
38
38
|
"@adobe/mammoth": "1.5.1-bleeding.1",
|
|
39
|
+
"@adobe/mdast-util-gridtables": "1.0.0",
|
|
40
|
+
"@adobe/remark-gridtables": "1.0.0",
|
|
39
41
|
"dirname-filename-esm": "1.1.1",
|
|
40
|
-
"github-slugger": "
|
|
42
|
+
"github-slugger": "2.0.0",
|
|
41
43
|
"mdast-util-to-markdown": "1.3.0",
|
|
42
44
|
"mdast-util-to-string": "3.1.0",
|
|
43
45
|
"remark-gfm": "3.0.1",
|
|
@@ -50,7 +52,7 @@
|
|
|
50
52
|
},
|
|
51
53
|
"devDependencies": {
|
|
52
54
|
"@adobe/eslint-config-helix": "1.3.2",
|
|
53
|
-
"@adobe/helix-mediahandler": "1.2.
|
|
55
|
+
"@adobe/helix-mediahandler": "1.2.14",
|
|
54
56
|
"@semantic-release/changelog": "6.0.1",
|
|
55
57
|
"@semantic-release/exec": "6.0.3",
|
|
56
58
|
"@semantic-release/git": "10.0.1",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
10
|
* governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
|
-
import { TYPE_CELL } from '@adobe/
|
|
12
|
+
import { TYPE_CELL } from '@adobe/mdast-util-gridtables';
|
|
13
13
|
import all from '../all.js';
|
|
14
14
|
|
|
15
15
|
const V_ALIGN = {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
10
|
* governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
|
-
import { TYPE_ROW } from '@adobe/
|
|
12
|
+
import { TYPE_ROW } from '@adobe/mdast-util-gridtables';
|
|
13
13
|
import all from '../all.js';
|
|
14
14
|
|
|
15
15
|
function gridTableRow(h, node) {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
10
|
* governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
|
-
import { TYPE_TABLE, TYPE_HEADER, TYPE_BODY } from '@adobe/
|
|
12
|
+
import { TYPE_TABLE, TYPE_HEADER, TYPE_BODY } from '@adobe/mdast-util-gridtables';
|
|
13
13
|
import all from '../all.js';
|
|
14
14
|
|
|
15
15
|
function gridTable(h, node) {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
10
|
* governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
|
-
import
|
|
12
|
+
import { slug } from 'github-slugger';
|
|
13
13
|
|
|
14
14
|
export default class IDSlugger {
|
|
15
15
|
constructor() {
|
|
@@ -22,7 +22,7 @@ export default class IDSlugger {
|
|
|
22
22
|
* @return {string} A unique slug string
|
|
23
23
|
*/
|
|
24
24
|
slug(value) {
|
|
25
|
-
let id =
|
|
25
|
+
let id = slug(value)
|
|
26
26
|
// remove leading numbers
|
|
27
27
|
.replace(/^\d+-+/, '');
|
|
28
28
|
|
package/src/mdast2md/mdast2md.js
CHANGED
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
imageReferences,
|
|
30
30
|
} from '@adobe/helix-markdown-support';
|
|
31
31
|
import { remarkMatter } from '@adobe/helix-markdown-support/matter';
|
|
32
|
-
import
|
|
32
|
+
import remarkGridTable from '@adobe/remark-gridtables';
|
|
33
33
|
|
|
34
34
|
import processImages from './mdast-process-images.js';
|
|
35
35
|
import sanitizeAutoEmbeds from './mdast-sanitize-autoembeds.js';
|