aboutsummaryrefslogtreecommitdiff
path: root/lib/docx/document-xml-reader.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/docx/document-xml-reader.js')
-rw-r--r--lib/docx/document-xml-reader.js5
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);
}