diff options
Diffstat (limited to 'html_backend.go')
| -rw-r--r-- | html_backend.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/html_backend.go b/html_backend.go index 14137e5..323b60b 100644 --- a/html_backend.go +++ b/html_backend.go @@ -1167,7 +1167,9 @@ func htmlWriteSection(doc *Document, el *element, out io.Writer) { _, withSectAnchors = doc.Attributes.Entry[docAttrSectAnchors] if withSectAnchors { - fmt.Fprintf(out, `<a class="anchor" href="#%s"></a>`, el.ID) + fmt.Fprintf(out, + `<a class="anchor" href="#%s" aria-label="Anchor for %s"></a>`, + el.ID, el.ID) } _, withSectlinks = doc.Attributes.Entry[docAttrSectLinks] if withSectlinks { |
