Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

草稿归档问题 #76

Open
WengKailiang opened this issue Aug 29, 2023 · 4 comments
Open

草稿归档问题 #76

WengKailiang opened this issue Aug 29, 2023 · 4 comments

Comments

@WengKailiang
Copy link

image 明明处于edit mode但是却一直提示这个

@Halbert66
Copy link

我的“草稿归档”命令只能归档那些Properties中Tag一栏是空栏(没有任何标签的)的文档。当tag一栏中填入标签值时,调用归档命令,没有反应。咋回事?

@WengKailiang
Copy link
Author

WengKailiang commented Sep 19, 2023 via email

@BTreee
Copy link

BTreee commented Nov 10, 2023

根据另一个老哥的issue中描述,应该是因为yaml的问题。
在你的utils.py中修改如下部分(把原来函数换成下面这个),安装一下yaml库可以解决

import yaml
def fetch_front_matter(fp):
'''提取markdown文件中的 front matter 信息为字典'''
# 如果对应key为空,类型为str
with open(fp, 'r', encoding='utf-8') as f:
front_matter = next(yaml.load_all(f, Loader=yaml.FullLoader))
return front_matter

@WengKailiang
Copy link
Author

WengKailiang commented Nov 10, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@WengKailiang @Halbert66 @BTreee and others