I use Jekyll and I wanted to make all of my headings linkable.
In HTML you can achieve this with a simple link to an element on the same page, except that the link would be self-referencing — for example:
<h2 id="my-heading">
<a href="#my-heading">My Heading</a>
</h2>
In Markdown, it is equivalent to:
## [My Heading](#my-heading)