Looks like attributes for elements generated from markdown have not been standardised yet, not least because the commonmark.org folk haven’t made up their mind on the syntax in the 5 years they’ve been discussing it.
And currently, Hugo’s markdown parser goldmark only
supports adding attributes to headers, not <a>
sadly.