Heading render hook failing accessibility test

From the docs

<h{{ .Level }} id="{{ .Anchor | safeURL }}">{{ .Text | safeHTML }} <a href="#{{ .Anchor | safeURL }}">¶</a></h{{ .Level }}>

web.dev complains this link does not have a discernible name.

This works if anyone comes across this

<h{{ .Level }} id="{{ .Anchor | safeURL }}">{{ .Text | safeHTML }} <a href="#{{ .Anchor | safeURL }} aria-label="{{ .Text | safeHTML }}">¶</a></h{{ .Level }}>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.