diff options
| author | Michael Williamson <mike@zwobble.org> | 2014-01-07 21:37:21 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2014-01-07 21:37:21 +0000 |
| commit | d9d55dece1861bbbf08f3688254447992cf1957f (patch) | |
| tree | 6c56fd5f00ebf4de9a8fbc0f202836dc262e84a3 /lib/index.js | |
| parent | 53e9f9200a781e488830c3c01ff58f50d667a812 (diff) | |
| parent | 51c625fb8474bcf790a0341ae5bbabb1316a2583 (diff) | |
Merge remote-tracking branch 'offlein/master'
Conflicts:
lib/index.js
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); }); } |
