?r
#let bibitem(body)=figure(kind: "bibitem", supplement: none, body)
#show figure.where(kind: "bibitem"): it=>box(width: 2em, it.counter.display("[1]"))+it.body+parbreak()
#show ref: it=>{
let e=it.element
if e.func()==figure and e.kind=="bibitem"{
let loc=e.location()
return link(loc, numbering("[1]", ..e.counter.at(loc)))
}
it
}
@ref1 @ref2
#heading(numbering: none)[References]
#bibitem[hello] <ref1>
#bibitem[world] <ref2>