aboutsummaryrefslogtreecommitdiff
path: root/lib/docx
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2024-06-13 11:09:57 +0100
committerMichael Williamson <mike@zwobble.org>2024-06-13 11:09:57 +0100
commit700e395a3d2a0c9f6526fe7c69a92bd347fa1b88 (patch)
treecf8ca7d2ffb52f4f1c6443a87629cbb880243a23 /lib/docx
parentb67feb7858174f6ab954784b92b04c6474f29047 (diff)
Parse run highlights
Diffstat (limited to 'lib/docx')
-rw-r--r--lib/docx/body-reader.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/docx/body-reader.js b/lib/docx/body-reader.js
index 7a00164..78c732e 100644
--- a/lib/docx/body-reader.js
+++ b/lib/docx/body-reader.js
@@ -94,7 +94,8 @@ function BodyReader(options) {
isItalic: readBooleanElement(element.first("w:i")),
isStrikethrough: readBooleanElement(element.first("w:strike")),
isAllCaps: readBooleanElement(element.first("w:caps")),
- isSmallCaps: readBooleanElement(element.first("w:smallCaps"))
+ isSmallCaps: readBooleanElement(element.first("w:smallCaps")),
+ highlight: element.firstOrEmpty("w:highlight").attributes["w:val"]
};
});
}