SilentVoid13 / Templater

A template plugin for obsidian
https://silentvoid13.github.io/Templater
GNU Affero General Public License v3.0
3.21k stars 194 forks source link

Obsidian 1.3.5 evaluates dynamic commands on insert #1124

Closed Synertry closed 1 year ago

Synertry commented 1 year ago

Plugin information (please complete the following information):

Describe the bug Before, I could insert <%+ tp.file.last_modified_date() %> in a template and it would get inserted plainly in the new note. But now Obisidian tries to evaluate it, which results in NaN

Expected behavior The plain dynamic command in the new note.

Screenshots Before: image After: image

Additional context Problem could have existed longer. Just noticed it now. If no fix for this is applicable, please show me another way to have dynamic commands in the end note.

AB1908 commented 1 year ago

Is this related to #910 ?

Synertry commented 1 year ago

Yes, you are right. I'm sorry for the duplicate.