diff options
Diffstat (limited to 'lib/documents.js')
| -rw-r--r-- | lib/documents.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/documents.js b/lib/documents.js index 986cd9c..63d5664 100644 --- a/lib/documents.js +++ b/lib/documents.js @@ -50,11 +50,12 @@ function ElementWithChildren(type) { }; } -function Image(read, altText) { +function Image(options) { return { type: "image", - read: read, - altText: altText + read: options.readImage, + altText: options.altText, + contentType: options.contentType }; } |
