show headings in refs

This commit is contained in:
David Allemang
2026-10-01 10:23:59 -04:00
parent 2d406b9582
commit ef14673672

View File

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