Update site_assets.py

This commit is contained in:
CyC2018
2026-11-07 06:34:54 +08:00
parent 541cf15df1
commit ae5fbd6cbe
+1 -1
View File
@@ -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*(?:<span class="hot[^"]*"></span>)?\s*$', line):
lines.append(line)
finish()