aboutsummaryrefslogtreecommitdiff
path: root/lib/documents.js
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2016-07-07 21:27:53 +0100
committerMichael Williamson <mike@zwobble.org>2016-07-07 21:27:53 +0100
commitc0a14c171f5bdfda6cb76b1589a43ada3b5768ce (patch)
tree7055a83898f6af08a0a7239812ef1d5c52732716 /lib/documents.js
parent1c439031d328a09bfb178b1182c09bb62d03782c (diff)
Add conversion of comments
Diffstat (limited to 'lib/documents.js')
-rw-r--r--lib/documents.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/documents.js b/lib/documents.js
index 9f01d88..428dc09 100644
--- a/lib/documents.js
+++ b/lib/documents.js
@@ -24,7 +24,8 @@ function Document(children, options) {
return {
type: types.document,
children: children,
- notes: options.notes || new Notes({})
+ notes: options.notes || new Notes({}),
+ comments: options.comments || []
};
}