How to create link to headings (using markdown links) that is a link to another note obsidian?

Alright, i found where the problem is. # character in the toc link was creating this problem

so this doesn’t work:

## TOC

- [referrerpolicy](<#[referrerpolicy](./html_07_anchor.md#referrerpolicy)>)

but this is working:

## TOC

- [referrerpolicy](<#[referrerpolicy](./html_07_anchor.md referrerpolicy)>)

- [referrerpolicy](<#referrerpolicy(./html_07_anchor.md referrerpolicy)>)