From 7aecbe20f174100cdc6f72238f43ef3d96e7fb50 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Mon, 1 Apr 2013 15:50:24 +0100 Subject: Have docx-reader emit warnings when finding unrecognised elements --- lib/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/index.js') 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); }); } -- cgit v1.2.3