diff options
| -rw-r--r-- | lib/index.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/index.js b/lib/index.js index 69ab111..ae95371 100644 --- a/lib/index.js +++ b/lib/index.js @@ -96,9 +96,10 @@ function convertElementToRawText(element) { function embedStyleMap(input, styleMap) { return unzip.openZip(input) + .tap(function(docxFile) { + return docxStyleMap.writeStyleMap(docxFile, styleMap); + }) .then(function(docxFile) { - docxStyleMap.writeStyleMap(docxFile, styleMap); - return { toBuffer: docxFile.toBuffer }; |
