Fix transclusion targetting

Fixing for [[ ]] broke it for not.

Also allow _ in target names.