You can link to an anchor heading in markdown quite easily.
[link to anchor heading](#background)
Plenty of stackoverflow questions deal with it such as this one or this one.
But I cannot seem to find a way to link to anchors that share the same name but are in different sections.
So for example, I cannot link to the background section in a different section.
[link to database background](#database#background)
As opposed to say :
[link to front end background](#front-end#background)
This does not work either.
[link to database background](#database##background)
I would expect the markdown anchor link to follow the section path specified. Is this not possible? Or am I using the wrong syntax?