From ef14673672908f91ccad0c719922731cf9842bde Mon Sep 17 00:00:00 2001 From: David Allemang Date: Thu, 1 Oct 2026 10:23:59 -0400 Subject: [PATCH] show headings in refs --- main.typ | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/main.typ b/main.typ index 8fdf1d9d..6b2e6a8e 100644 --- a/main.typ +++ b/main.typ @@ -43,6 +43,18 @@ }, )) +#show ref: it => context { + let el = it.element + if el != none and el.func() == heading { + link( + it.target, + [#el.supplement #counter(el.func()).display(auto, at: it.target) #el.body], + ) + } else { + it + } +} + #{ doc("index.html", include "content/index.typ") doc("core.html", include "content/core.typ")