4.4 Common Markdown Extensions ↑
4.4.4 Heading ID Generation
As an extension to the original Markdown spec from John Gruber, headings will automatically have IDs assigned, based on the contents between the opening and closing tags, so that they can become targets for links.
The ID will be formed by starting with the text of the heading, converting upper-case letters to lower-case, and converting spaces to dashes.
Thus a line like the following…
## Heading ID Generation
… would generate an ID of ‘heading-id-generation’.
ID formation may vary when outputting Markdown, in order to better conform to the apparent MultiMarkdown standard.