From d98f3862193c6bb9b88735c131531ac6b1f7b5c0 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 3 Jul 2016 19:34:51 +0100 Subject: Add basic comments reader --- lib/documents.js | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lib/documents.js') diff --git a/lib/documents.js b/lib/documents.js index 5665198..a8312e9 100644 --- a/lib/documents.js +++ b/lib/documents.js @@ -10,6 +10,7 @@ var types = exports.types = { noteReference: "noteReference", image: "image", note: "note", + comment: "comment", table: "table", tableRow: "tableRow", tableCell: "tableCell", @@ -112,6 +113,14 @@ function Note(options) { }; } +function comment(options) { + return { + type: types.comment, + commentId: options.commentId, + body: options.body + }; +} + function noteKey(noteType, id) { return noteType + "-" + id; } @@ -171,6 +180,7 @@ exports.Hyperlink = Hyperlink; exports.NoteReference = NoteReference; exports.Notes = Notes; exports.Note = Note; +exports.comment = comment; exports.Image = Image; exports.Table = Table; exports.TableRow = TableRow; -- cgit v1.2.3