All headers already have an id
added automatically which allows you to link to them and to create automatic table of contents using client-side JS.
You may also want to check out these topics, it sounds like this is a duplicate? https://forum.ghost.org/t/add-toc-aka-table-of-contents-for-markdown-engine/