aboutsummaryrefslogtreecommitdiff
path: root/mammoth/styles
diff options
context:
space:
mode:
Diffstat (limited to 'mammoth/styles')
-rw-r--r--mammoth/styles/parser/document_matcher_parser.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/mammoth/styles/parser/document_matcher_parser.py b/mammoth/styles/parser/document_matcher_parser.py
index 034c59c..b9e09f3 100644
--- a/mammoth/styles/parser/document_matcher_parser.py
+++ b/mammoth/styles/parser/document_matcher_parser.py
@@ -24,7 +24,16 @@ def parse_document_matcher(tokens):
style_id=style_id,
style_name=style_name,
)
-
+
+ elif tokens.try_skip(TokenType.IDENTIFIER, "table"):
+ style_id = try_parse_class_name(tokens)
+ style_name = _parse_style_name(tokens)
+
+ return document_matchers.table(
+ style_id=style_id,
+ style_name=style_name,
+ )
+
elif tokens.try_skip(TokenType.IDENTIFIER, "b"):
return document_matchers.bold