Markdown Links (Table of Content) not working in Obsidian

What I want:
I want to markdown links (e.g. table of content) to work in Obsidian but for some reason, when I copy paste the raw MD from github, and click the link, it does not navigate me to the heading of the MD file. The Obsidian outline however renders the file heading hierarchy properly. What can I do to make it work properly?

MD file I want the link to work for. https://raw.githubusercontent.com/keyvanakbary/learning-notes/master/books/designing-data-intensive-applications.md

I think those way they convert the heading text (all lowercase, adding dashes) differs from how Obsidian does it. Follow the instructions at Internal link - Obsidian Help to see examples of how obsidian formats its links.