Don't generate section anchor for h1, the title of the whole page.
This commit is contained in:
parent
506a0f2f51
commit
7bacc72463
1 changed files with 1 additions and 1 deletions
|
@ -292,7 +292,7 @@ def add_header_anchors(soup):
|
|||
'''
|
||||
Give each <hX> an <a> to link to it.
|
||||
'''
|
||||
header_pattern = re.compile(rf'^h[1-6]$')
|
||||
header_pattern = re.compile(rf'^h[2-6]$')
|
||||
used_slugs = set()
|
||||
|
||||
for header in soup.find_all(header_pattern):
|
||||
|
|
Loading…
Reference in a new issue