aboutsummaryrefslogtreecommitdiff
path: root/lib/documents.js
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2017-11-03 16:19:28 +0000
committerMichael Williamson <mike@zwobble.org>2017-11-03 16:19:28 +0000
commitc378280e344dd6209ec41975b4c879d297ad76f9 (patch)
tree3fca2fd67a1554c8446577b1606c4187fb32668d /lib/documents.js
parentb6514e40cf8a8a84ca7d341465b3e9fe439be24f (diff)
Read table style applied to tables
Diffstat (limited to 'lib/documents.js')
-rw-r--r--lib/documents.js7
1 files changed, 5 insertions, 2 deletions
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
};
}