mammoth-styled
Advanced tools
Comparing version 1.0.3 to 1.0.4
1.0.4 / 2021-03-10 | ||
================== | ||
* fix: typeerror | ||
* chore: add empty docx test | ||
1.0.3 / 2021-03-06 | ||
@@ -3,0 +9,0 @@ ================== |
@@ -40,2 +40,5 @@ 'use strict'; | ||
findContentType(path) { | ||
if (!path) { | ||
return null; | ||
} | ||
const overrideContentType = overrides[path]; | ||
@@ -42,0 +45,0 @@ if (overrideContentType) { |
@@ -49,3 +49,3 @@ 'use strict'; | ||
if (node.name === 'mc:AlternateContent') { | ||
return node.first('mc:Fallback').children; | ||
return node.firstOrEmpty('mc:Fallback').children; | ||
} | ||
@@ -52,0 +52,0 @@ node.children = _.flatten(node.children.map(collapseAlternateContent, true)); |
@@ -15,3 +15,2 @@ 'use strict'; | ||
return htmlWriter.writer(options); | ||
} |
{ | ||
"name": "mammoth-styled", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"author": "Zhenjiang Shao <814184517@qq.com>, Michael Williamson <mike@zwobble.org>", | ||
@@ -5,0 +5,0 @@ "description": "Convert Word documents from docx to simple HTML and Markdown with style", |
146428
3430