Skip to content

Commit

Permalink
Deprecate ARIA role doc-endnote[s] and replace it with doc-footnote. F…
Browse files Browse the repository at this point in the history
…ixes yuin#258
  • Loading branch information
schnerring committed Oct 17, 2021
1 parent 829d874 commit 820918d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extension/footnote.go
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ func (r *FootnoteHTMLRenderer) renderFootnote(w util.BufWriter, source []byte, n
_, _ = w.Write(r.idPrefix(node))
_, _ = w.WriteString(`fn:`)
_, _ = w.WriteString(is)
_, _ = w.WriteString(`" role="doc-endnote"`)
_, _ = w.WriteString(`" role="doc-footnote"`)
if node.Attributes() != nil {
html.RenderAttributes(w, node, html.ListItemAttributeFilter)
}
Expand All @@ -583,7 +583,7 @@ func (r *FootnoteHTMLRenderer) renderFootnoteList(w util.BufWriter, source []byt
if entering {
_, _ = w.WriteString("<")
_, _ = w.WriteString(tag)
_, _ = w.WriteString(` class="footnotes" role="doc-endnotes"`)
_, _ = w.WriteString(` class="footnotes"`)
if node.Attributes() != nil {
html.RenderAttributes(w, node, html.GlobalAttributeFilter)
}
Expand Down

0 comments on commit 820918d

Please sign in to comment.