Don't generate section anchor for h1, the title of the whole page.

This commit is contained in:
voussoir 2023-06-04 14:17:02 -07:00
parent 506a0f2f51
commit 7bacc72463

View file

@ -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):