markup/goldmark: Fix handling of legacy attribute config
markup/goldmark: Fix handling of legacy attribute config

See #7548

gohugoio/hugo,anthonyfok/hugo,anthonyfok/hugo,gohugoio/hugo,anthonyfok/hugo,gohugoio/hugo