a-nano-dust / dust-obsidian-calendar

obsidian 日历插件
MIT License
57 stars 2 forks source link

反馈一个问题 #54

Open iczrac opened 4 months ago

iczrac commented 4 months ago

插件里有分开设置所允许执行的 “模板插件”,但一旦这么做就会导致具有系统设计参数和第三方插件参数的日记模板无法正常表达

例如以下的两个模板,希望能优化一下

<%-*
let banner= await tp.user.getrandomImage("Attachments/Banner")
let weather = await tp.user.getweather("")
-%>
````ad-flex
%% ad 语法格式书写 %%
>[!caution] 过期的任务
>```tasks
 not done
 due before  {{date:YYYY-MM-DD}}
 path does not include Attachments
 short mode
 >```

>[!check] 今天要完成的任务
>```tasks
 not done
 due on  {{date:YYYY-MM-DD}} 
 path does not include Attachments
 short mode
>```