forked from shadowfacts/shadowfacts.net
Set role=presentation for header anchor links
This commit is contained in:
parent
bc280943f3
commit
605aaab747
|
@ -32,7 +32,8 @@ md.core.ruler.push("anchor", (state) => {
|
||||||
attrs: [
|
attrs: [
|
||||||
["class", "header-anchor"],
|
["class", "header-anchor"],
|
||||||
["href", "#" + slug],
|
["href", "#" + slug],
|
||||||
["aria-hidden", "true"]
|
["aria-hidden", "true"],
|
||||||
|
["role", "presentation"]
|
||||||
]
|
]
|
||||||
}),
|
}),
|
||||||
Object.assign(new state.Token("html_block", "", 0), { content: token.markup }),
|
Object.assign(new state.Token("html_block", "", 0), { content: token.markup }),
|
||||||
|
|
Loading…
Reference in New Issue