mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-09 21:07:55 +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
|
@ -15,7 +15,7 @@ class Header extends React.Component {
|
|||
|
||||
return (
|
||||
<Heading {...this.props}>
|
||||
<a className="anchor" name={slug} />
|
||||
<a className="anchor" id={slug} />
|
||||
{this.props.children}{' '}
|
||||
<a className="hash-link" href={'#' + slug}>
|
||||
#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue