aboutsummaryrefslogtreecommitdiff
path: root/mammoth/documents.py
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2024-06-13 11:13:28 +0100
committerMichael Williamson <mike@zwobble.org>2024-06-13 11:13:28 +0100
commit0d5b27652c119dfaf99fae5f4e624c9efec408b5 (patch)
treea03da709ca9fc09ff0b333db4cb1b7837d0b3d93 /mammoth/documents.py
parentb5e5ea1cfb4d36ad4474ecb32da69623a07e06f5 (diff)
Parse run highlights
Diffstat (limited to 'mammoth/documents.py')
-rw-r--r--mammoth/documents.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/mammoth/documents.py b/mammoth/documents.py
index 7559d40..b49a602 100644
--- a/mammoth/documents.py
+++ b/mammoth/documents.py
@@ -53,6 +53,7 @@ class Run(HasChildren):
vertical_alignment = cobble.field()
font = cobble.field()
font_size = cobble.field()
+ highlight = cobble.field()
@cobble.data
class Text(Element):
@@ -128,6 +129,7 @@ def run(
vertical_alignment=None,
font=None,
font_size=None,
+ highlight=None,
):
if vertical_alignment is None:
vertical_alignment = VerticalAlignment.baseline
@@ -144,6 +146,7 @@ def run(
vertical_alignment=vertical_alignment,
font=font,
font_size=font_size,
+ highlight=highlight,
)
class VerticalAlignment(object):