mirror of
https://github.com/CyC2018/Interview-Notebook.git
synced 2026-11-19 12:53:47 +00:00
Update site_assets.py
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user