Make `[#tag-alias]([[tag]])` render like `#tag`

But how to check for a hash as the first character in the text enclosed by <a> and </a> ?
I’ve seen that one can target like this:

a.tag[data-ref^="bug"]{ 

but how can I target with CSS not the text inside the [[]] but the actual text of the link…