From 2642cdd90f25528df0d9501200bc95417e60ec82 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 27 Apr 2013 22:38:01 +0100 Subject: Add content-types to image elements --- lib/documents.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lib/documents.js') 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 }; } -- cgit v1.2.3