From dd1e824216f29bb23235d92dffd1a22506387748 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Fri, 19 Sep 2025 14:22:10 +0100 Subject: Add docs for highlight style mapping --- README.md | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/README.md b/README.md index 8235b6e..093403a 100644 --- a/README.md +++ b/README.md @@ -484,6 +484,43 @@ small-caps Note that this matches text that has had small caps explicitly applied to it. It will not match any text that is small caps because of its paragraph or run style. +#### Highlight + +Match explicitly highlighted text: + +``` +highlight +``` + +Note that this matches text that has had a highlight explicitly applied to it. +It will not match any text that is highlighted because of its paragraph or run style. + +It's also possible to match specific colours. +For instance, to match yellow highlights: + +``` +highlight[color='yellow'] +``` + +The set of colours typically used are: + +* `black` +* `blue` +* `cyan` +* `green` +* `magenta` +* `red` +* `yellow` +* `white` +* `darkBlue` +* `darkCyan` +* `darkGreen` +* `darkMagenta` +* `darkRed` +* `darkYellow` +* `darkGray` +* `lightGray` + #### Ignoring document elements Use `!` to ignore a document element. -- cgit v1.2.3