mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-11 08:07:26 +02:00
use id attribute instead of name for in page anchors and remove redundant anchors (#449)
This commit is contained in:
parent
8c2145585c
commit
c800870fef
4 changed files with 8 additions and 11 deletions
|
@ -20,7 +20,7 @@ function anchors(md) {
|
|||
return (
|
||||
'<h' +
|
||||
tokens[idx].hLevel +
|
||||
'><a class="anchor" aria-hidden="true" name="' +
|
||||
'><a class="anchor" aria-hidden="true" id="' +
|
||||
toSlug(textToken.content) +
|
||||
'"></a><a href="#' +
|
||||
toSlug(textToken.content) +
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue