From e8e2652dac7f2f36158136c3c30072c801d2b1d2 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Mon, 1 Apr 2013 12:33:12 +0100 Subject: Include run properties on run elements --- 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 83a8106..cee1b48 100644 --- a/lib/documents.js +++ b/lib/documents.js @@ -76,10 +76,11 @@ function Paragraph(children, properties) { }; } -function Run(children) { +function Run(children, properties) { return { type: "run", - children: children + children: children, + properties: properties || {} }; } -- cgit v1.2.3