mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-26 15:47:21 +00:00
website: Filter out h4 headings from document navigation
This commit is contained in:
parent
1255eba343
commit
c05e2de963
1 changed files with 1 additions and 0 deletions
|
|
@ -14,6 +14,7 @@ export const DocumentNav: FC<Props> = ({ content }) => {
|
|||
.split('\n\n')
|
||||
.map(item => item.replace(/[\n\r]/g, ''))
|
||||
.filter(item => item.startsWith('##'))
|
||||
.filter(item => !item.startsWith('####'))
|
||||
.map(item => parseHeadingId([item]))
|
||||
.filter(item => item);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue