From b346be31b8103d403134f12141b51f3321a6f442 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Tue, 2 Apr 2013 23:17:11 +0100 Subject: Write altText of image if available --- lib/documents.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/documents.js') diff --git a/lib/documents.js b/lib/documents.js index b28281f..d1c1e03 100644 --- a/lib/documents.js +++ b/lib/documents.js @@ -33,10 +33,11 @@ function ElementWithChildren(type) { }; } -function Image(read) { +function Image(read, altText) { return { type: "image", - read: read + read: read, + altText: altText }; } -- cgit v1.2.3