Linking to a heading within a post

Your screenshot shows the composer, not the published post. Did you publish your post? The raw markdown doesn’t have a link; it’s created when you post.

DiscoTOC works automatically. You do not have to add the links by hand when using that component.