aboutsummaryrefslogtreecommitdiff
path: root/lib/documents.js
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2013-04-27 22:38:01 +0100
committerMichael Williamson <mike@zwobble.org>2013-04-27 22:38:01 +0100
commit2642cdd90f25528df0d9501200bc95417e60ec82 (patch)
tree616d495bccaa000c550353412d648d6b56279f89 /lib/documents.js
parentcb18e8aa92108f8576c5d4312e89e6ddbabd88c8 (diff)
Add content-types to image elements
Diffstat (limited to 'lib/documents.js')
-rw-r--r--lib/documents.js7
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
};
}