@adobe/helix-md2docx 1.3.0 → 1.3.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,10 @@
1
+ ## [1.3.1](https://github.com/adobe/helix-md2docx/compare/v1.3.0...v1.3.1) (2022-02-03)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **deps:** update dependency @adobe/helix-shared-process-queue to v1.1.1 ([#19](https://github.com/adobe/helix-md2docx/issues/19)) ([97db05e](https://github.com/adobe/helix-md2docx/commit/97db05e76cade37c2f5e37e210039d284d4ac094))
7
+
1
8
  # [1.3.0](https://github.com/adobe/helix-md2docx/compare/v1.2.3...v1.3.0) (2022-02-02)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-md2docx",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "Helix Service that converts markdown to word documents",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -29,7 +29,7 @@
29
29
  "dependencies": {
30
30
  "@adobe/helix-fetch": "3.0.0",
31
31
  "@adobe/helix-markdown-support": "3.1.2",
32
- "@adobe/helix-shared-process-queue": "1.1.0",
32
+ "@adobe/helix-shared-process-queue": "1.1.1",
33
33
  "@adobe/helix-docx2md": "1.0.6",
34
34
  "docx": "7.3.0",
35
35
  "hast-util-is-element": "2.1.2",
@@ -0,0 +1,22 @@
1
+ /*
2
+ * Copyright 2022 Adobe. All rights reserved.
3
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
+ * you may not use this file except in compliance with the License. You may obtain a copy
5
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
6
+ *
7
+ * Unless required by applicable law or agreed to in writing, software distributed under
8
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
+ * OF ANY KIND, either express or implied. See the License for the specific language
10
+ * governing permissions and limitations under the License.
11
+ */
12
+ declare interface Logger {}
13
+
14
+ /**
15
+ * Converts the md to a word document (docx).
16
+ *
17
+ * @param {Node} md The md
18
+ * @param {Logger} [log] a console like logger
19
+ * @param {string} [stylesXML] The content of the styles.xml file of a Word template (to override provided default)
20
+ * @returns {Promise<Buffer>} the docx
21
+ */
22
+ export default function md2docx(mdast: object, log: Logger, stylesXML: string): Promise<Buffer>;
@@ -16,6 +16,7 @@ declare interface Logger {}
16
16
  *
17
17
  * @param {Node} mdast The mdast
18
18
  * @param {Logger} [log] a console like logger
19
+ * @param {string} [stylesXML] The content of the styles.xml file of a Word template (to override provided default)
19
20
  * @returns {Promise<Buffer>} the docx
20
21
  */
21
- export default function mdast2docx(mdast: object, log: Logger): Promise<Buffer>;
22
+ export default function mdast2docx(mdast: object, log: Logger, stylesXML: string): Promise<Buffer>;