From 7bacc7246348e1a96a9659ed8725ff53a9e7de03 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sun, 4 Jun 2023 14:17:02 -0700 Subject: [PATCH] Don't generate section anchor for h1, the title of the whole page. --- voussoir.net/writing/vmarkdown.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/voussoir.net/writing/vmarkdown.py b/voussoir.net/writing/vmarkdown.py index bce3f8d..03f46c1 100644 --- a/voussoir.net/writing/vmarkdown.py +++ b/voussoir.net/writing/vmarkdown.py @@ -292,7 +292,7 @@ def add_header_anchors(soup): ''' Give each an 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):