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")