diff options
| author | Michael Williamson <mike@zwobble.org> | 2016-07-07 21:37:21 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2016-07-07 21:37:21 +0100 |
| commit | bf37d9d321dad98f3fa2ca99a5235d07cb66892e (patch) | |
| tree | 46a51f532fba79a4cc19398e0aa4fda04b5debd4 /lib/docx/document-xml-reader.js | |
| parent | c0a14c171f5bdfda6cb76b1589a43ada3b5768ce (diff) | |
Wire up comment conversion code
Diffstat (limited to 'lib/docx/document-xml-reader.js')
| -rw-r--r-- | lib/docx/document-xml-reader.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/docx/document-xml-reader.js b/lib/docx/document-xml-reader.js index 12ca19e..bb912e4 100644 --- a/lib/docx/document-xml-reader.js +++ b/lib/docx/document-xml-reader.js @@ -12,7 +12,10 @@ function DocumentXmlReader(options) { var result = bodyReader.readXmlElements(body.children) .map(function(children) { - return new documents.Document(children, {notes: options.notes}); + return new documents.Document(children, { + notes: options.notes, + comments: options.comments + }); }); return new Result(result.value, result.messages); } |
