From cbbe2c325384ddd517b848398fdbde86231366f7 Mon Sep 17 00:00:00 2001 From: MultisampledNight Date: Wed, 10 Jan 2024 21:28:01 +0100 Subject: [PATCH] docs: only highlight standalone terms --- docs/template.typ | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/template.typ b/docs/template.typ index 23216db..712c6e7 100644 --- a/docs/template.typ +++ b/docs/template.typ @@ -48,8 +48,8 @@ "output", "streamer", "modifier", ) -// yes, the shadowing is intentional -#let terms = regex(terms.map(expand).join("|")) +// yes, the shadowing is intentional to avoid accidentally using the list +#let terms = regex("\\b(" + terms.map(expand).join("|") + ")\\b") #let conf( title: none,