How to remove the displayed number after custom name in a reference?

Hi @Veganer,

in your code only references of headings are handled, you need to allow a default for all other reference types.

#show ref: it => {
  let el = it.element
  if el != none and el.func() == heading {
    link(el.location(), el.body)
  } else {
    it
  }
}

Could you please, change your title to a question

and use a code block, like this:

```typst
your code
```