Set role=presentation for header anchor links

This commit is contained in:
Shadowfacts 2019-09-16 18:11:57 -04:00
parent bc280943f3
commit 605aaab747
Signed by untrusted user: shadowfacts
GPG Key ID: 94A5AB95422746E5
1 changed files with 3 additions and 2 deletions

View File

@ -32,7 +32,8 @@ md.core.ruler.push("anchor", (state) => {
attrs: [
["class", "header-anchor"],
["href", "#" + slug],
["aria-hidden", "true"]
["aria-hidden", "true"],
["role", "presentation"]
]
}),
Object.assign(new state.Token("html_block", "", 0), { content: token.markup }),