From ae5fbd6cbe59fd000125bbaad964d1c6d00547db Mon Sep 17 00:00:00 2001 From: CyC2018 Date: Sat, 7 Nov 2026 06:34:54 +0800 Subject: [PATCH] Update site_assets.py --- website/builder/site_assets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/builder/site_assets.py b/website/builder/site_assets.py index 2dbfa4fe..16762198 100644 --- a/website/builder/site_assets.py +++ b/website/builder/site_assets.py @@ -122,7 +122,7 @@ def search_document(path, content): if heading: finish() raw_title = heading[2] - current = {'title': plain_text(raw_title), 'id': heading_slug(raw_title, counts), 'text': ''} + current = {'title': plain_text(raw_title), 'id': heading_slug(raw_title, counts), 'level': len(heading[1]), 'text': ''} elif not re.match(r'^\s*[-*+]\s+\[[^]]+\]\(#[^)]*\)\s*(?:)?\s*$', line): lines.append(line) finish()