diff options
Diffstat (limited to 'lib/index.js')
| -rw-r--r-- | lib/index.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/index.js b/lib/index.js index bec626c..1928424 100644 --- a/lib/index.js +++ b/lib/index.js @@ -38,6 +38,13 @@ function convertToHtml(input, options) { return docxReader.read(input) .then(function(documentResult) { + if (fullOptions.transformDocument) { + return fullOptions.transformDocument(documentResult); + } else { + return documentResult; + } + }) + .then(function(documentResult) { return convertDocumentToHtml(documentResult, fullOptions); }); } |
