show headings in refs
This commit is contained in:
12
main.typ
12
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("index.html", include "content/index.typ")
|
||||||
doc("core.html", include "content/core.typ")
|
doc("core.html", include "content/core.typ")
|
||||||
|
|||||||
Reference in New Issue
Block a user