@adobe/helix-docx2md 1.0.3 → 1.0.4
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 +7 -0
- package/package.json +4 -4
- package/src/index.d.ts +4 -7
- package/src/index.js +4 -11
- package/src/mdast2md/mdast2md.d.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [1.0.4](https://github.com/adobe/helix-docx2md/compare/v1.0.3...v1.0.4) (2022-01-17)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* proper exports ([#7](https://github.com/adobe/helix-docx2md/issues/7)) ([e57c70a](https://github.com/adobe/helix-docx2md/commit/e57c70ac04904f5fedee629fbd019edcb8532235))
|
|
7
|
+
|
|
1
8
|
## [1.0.3](https://github.com/adobe/helix-docx2md/compare/v1.0.2...v1.0.3) (2022-01-15)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/helix-docx2md",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "Helix library that converts word documents to markdown",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.js",
|
|
7
|
-
"
|
|
7
|
+
"_exports": {
|
|
8
8
|
".": "./src/index.js",
|
|
9
|
-
"./
|
|
10
|
-
"./mdast2md": "./src/mdast2md/mdast2md.js",
|
|
9
|
+
"./dast2mdast": "./src/dast2mdast/docx2mdast.js",
|
|
11
10
|
"./docx2dast": "./src/docx2dast/docx2dast.js",
|
|
11
|
+
"./mdast2md": "./src/mdast2md/mdast2md.js",
|
|
12
12
|
"./docx2md": "./src/docx2md.js"
|
|
13
13
|
},
|
|
14
14
|
"scripts": {
|
package/src/index.d.ts
CHANGED
|
@@ -9,10 +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
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
export default
|
|
16
|
-
docx2mdast,
|
|
17
|
-
mdast2markdown,
|
|
18
|
-
};
|
|
12
|
+
export { default as dast2mdast } from './dast2mdast/dast2mdast.js';
|
|
13
|
+
export { default as docx2dast } from './docx2dast/docx2dast.js';
|
|
14
|
+
export { default as mdast2md } from './mdast2md/mdast2md.js';
|
|
15
|
+
export { default as docx2md } from './docx2md.js';
|
package/src/index.js
CHANGED
|
@@ -9,14 +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
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
export default {
|
|
18
|
-
docx2dast,
|
|
19
|
-
dast2mdast,
|
|
20
|
-
mdast2md,
|
|
21
|
-
docx2md,
|
|
22
|
-
};
|
|
12
|
+
export { default as dast2mdast } from './dast2mdast/dast2mdast.js';
|
|
13
|
+
export { default as docx2dast } from './docx2dast/docx2dast.js';
|
|
14
|
+
export { default as mdast2md } from './mdast2md/mdast2md.js';
|
|
15
|
+
export { default as docx2md } from './docx2md.js';
|
|
@@ -34,4 +34,4 @@ export declare interface MDast2mdOptions {
|
|
|
34
34
|
* @param {string} [opts.source] the source document
|
|
35
35
|
* @returns {Promise<string>} the markdown representation.
|
|
36
36
|
*/
|
|
37
|
-
export function mdast2md(mdast: object, opts: MDast2mdOptions): Promise<string>;
|
|
37
|
+
export default function mdast2md(mdast: object, opts: MDast2mdOptions): Promise<string>;
|