diff options
| author | Michael Williamson <mike@zwobble.org> | 2013-04-27 22:38:01 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2013-04-27 22:38:01 +0100 |
| commit | 2642cdd90f25528df0d9501200bc95417e60ec82 (patch) | |
| tree | 616d495bccaa000c550353412d648d6b56279f89 /lib/documents.js | |
| parent | cb18e8aa92108f8576c5d4312e89e6ddbabd88c8 (diff) | |
Add content-types to image elements
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 }; } |
