From c378280e344dd6209ec41975b4c879d297ad76f9 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Fri, 3 Nov 2017 16:19:28 +0000 Subject: Read table style applied to tables --- lib/documents.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lib/documents.js') diff --git a/lib/documents.js b/lib/documents.js index a6d5dd0..100d004 100644 --- a/lib/documents.js +++ b/lib/documents.js @@ -148,10 +148,13 @@ function Image(options) { }; } -function Table(children) { +function Table(children, properties) { + properties = properties || {}; return { type: types.table, - children: children + children: children, + styleId: properties.styleId || null, + styleName: properties.styleName || null }; } -- cgit v1.2.3