Blob and tree gfm links to anchors work.

Fixes #6046
Merge pull request #6375 from cirosantilli/link-with-id

Blob and tree gfm links to anchors work.