For example:
If I have a heading called Heading 1 in a document called file1.md, I can make a link to it like this from the same document:
[link](#headin