It appears that the auto-linker kicks in inside the id attribute of the heading, which is not an appropriate place to insert an HTML link.
1 Steps to reproduce on 3b27f36f93f0
2 Steps to reproduce on 3b27f36f93f0
3 Steps to reproduce on 3b27f36f93f0 three