Consider the proposal at
http://talk.commonmark.org/t/turning-empty-link-definitions-into-anchors/893
I don’t think the considerations against that proposal are very strong, so I’m strongly inclined to implement it.
Would this work for your purposes?