aboutsummaryrefslogtreecommitdiff
path: root/lib/styles
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2017-11-04 10:54:34 +0000
committerMichael Williamson <mike@zwobble.org>2017-11-04 10:54:34 +0000
commiteae1dd0b509fbe201ba5f7ed530fd1bf8329904a (patch)
tree02e69155d70c9f11f332dfcbffec9d9e6a6bb36e /lib/styles
parent0748bff0572c57ce8a62a92f19071c16a0a76c02 (diff)
Use table style mappings during document conversion
Diffstat (limited to 'lib/styles')
-rw-r--r--lib/styles/document-matchers.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/styles/document-matchers.js b/lib/styles/document-matchers.js
index e3cae46..11b577f 100644
--- a/lib/styles/document-matchers.js
+++ b/lib/styles/document-matchers.js
@@ -1,5 +1,6 @@
exports.paragraph = paragraph;
exports.run = run;
+exports.table = table;
exports.bold = new Matcher("bold");
exports.italic = new Matcher("italic");
exports.underline = new Matcher("underline");
@@ -21,6 +22,10 @@ function run(options) {
return new Matcher("run", options);
}
+function table(options) {
+ return new Matcher("table", options);
+}
+
function Matcher(elementType, options) {
options = options || {};
this._elementType = elementType;