We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04382b5 commit b5fa8bfCopy full SHA for b5fa8bf
sync_notes.py
@@ -57,12 +57,8 @@ def clone_source_repo(self):
57
def get_title_from_filename(self, filepath):
58
"""从文件名提取标题"""
59
filename = Path(filepath).stem # 去掉扩展名
60
- # 移除一些特殊前缀
61
- title = re.sub(r'^[∑»§_\d\-\s]+', '', filename).strip()
62
- # 如果清理后为空,使用原始文件名
63
- if not title:
64
- title = filename
65
- return title
+ # 直接使用完整的文件名作为标题,保留所有特殊前缀
+ return filename
66
67
def parse_frontmatter(self, content):
68
"""解析 frontmatter"""
0 commit comments