diff options
| author | Michael Williamson <mike@zwobble.org> | 2017-07-21 12:19:15 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2017-07-21 12:19:15 +0100 |
| commit | 500a2aca545c47b9677bd85e55b9b24dc4ec9c7c (patch) | |
| tree | 61a7bb91ae91ffd498b5ad1c2e5aac4178f72bb3 /mammoth/styles/parser/document_matcher_parser.py | |
| parent | 6f7fbaa001eda6aca41f9a4f54f526ef7b87b738 (diff) | |
Add style mapping for small caps
Diffstat (limited to 'mammoth/styles/parser/document_matcher_parser.py')
| -rw-r--r-- | mammoth/styles/parser/document_matcher_parser.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mammoth/styles/parser/document_matcher_parser.py b/mammoth/styles/parser/document_matcher_parser.py index 36999d0..034c59c 100644 --- a/mammoth/styles/parser/document_matcher_parser.py +++ b/mammoth/styles/parser/document_matcher_parser.py @@ -37,6 +37,9 @@ def parse_document_matcher(tokens): elif tokens.try_skip(TokenType.IDENTIFIER, "strike"): return document_matchers.strikethrough + elif tokens.try_skip(TokenType.IDENTIFIER, "small-caps"): + return document_matchers.small_caps + elif tokens.try_skip(TokenType.IDENTIFIER, "comment-reference"): return document_matchers.comment_reference |
