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

增加和templater插件的配合 #23

Open
wawayi-coder opened this issue Mar 5, 2023 · 0 comments
Open

增加和templater插件的配合 #23

wawayi-coder opened this issue Mar 5, 2023 · 0 comments

Comments

@wawayi-coder
Copy link

wawayi-coder commented Mar 5, 2023

#enhancement
当使用templater插件后,由anki导入的模板YAML头里的{{date}} {{time}}会被标记成 invalid YAML,导致基于此模板生成的笔记无法同步到ANKI。如下图

解决办法是人工把{{date}} {{time}}改成templater的语法:<% tp.date.now("YYYY-MM-DD HH:mm") %> 如下图

如果有十几个模板,就需要把每个模板都这样做一遍。如果只是做一遍,就还好了;问题是每次从anki重新导入模板进Obsidian时,都得重新这么做一遍,,,太太太麻烦了,,。

建议能够加一个选项,就是导入模板是否使用templater语法。如果选上,模板自动就会采用templater语法来写日期时间,否则就用系统内置template插件的语法。

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

1 participant