Skip to content

Commit

Permalink
Fix role="doc-noteref" per WAI-ARIA requirements.
Browse files Browse the repository at this point in the history
Fixes #719. PR #693 also incorporate this fix, but has gone stale.
  • Loading branch information
psfrolov authored and gettalong committed Mar 15, 2023
1 parent 7118aba commit 7135a7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/kramdown/converter/html.rb
Original file line number Diff line number Diff line change
Expand Up @@ -303,8 +303,8 @@ def convert_footnote(el, _indent)
@footnotes << [name, el.value, number, 0]
@footnotes_by_name[name] = @footnotes.last
end
"<sup id=\"fnref:#{name}#{repeat}\" role=\"doc-noteref\">" \
"<a href=\"#fn:#{name}\" class=\"footnote\" rel=\"footnote\">" \
"<sup id=\"fnref:#{name}#{repeat}\">" \
"<a href=\"#fn:#{name}\" class=\"footnote\" rel=\"footnote\" role=\"doc-noteref\">" \
"#{number}</a></sup>"
end

Expand Down

0 comments on commit 7135a7b

Please sign in to comment.