aboutsummaryrefslogtreecommitdiff
path: root/lib/index.js
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2013-04-01 15:50:24 +0100
committerMichael Williamson <mike@zwobble.org>2013-04-01 15:50:24 +0100
commit7aecbe20f174100cdc6f72238f43ef3d96e7fb50 (patch)
tree11f826c8fef2bae26397d8374f51c94d7d336791 /lib/index.js
parent6fdee5a4b57832682e1c43156b2e075a5552f595 (diff)
Have docx-reader emit warnings when finding unrecognised elements
Diffstat (limited to 'lib/index.js')
-rw-r--r--lib/index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/index.js b/lib/index.js
index 146b507..2a5283f 100644
--- a/lib/index.js
+++ b/lib/index.js
@@ -19,7 +19,7 @@ function Converter(options) {
Converter.prototype.convertToHtml = function(docxFile) {
var documentConverter = this._documentConverter;
return docxReader.read(docxFile)
- .then(function(document) {
- return documentConverter.convertToHtml(document);
+ .then(function(result) {
+ return documentConverter.convertToHtml(result.value);
});
}