Open
Description
Describe the bug
The default file template uses "trim" has a block identifier, which is not valid in Nunjucks. It is only a filter. You can see this by attempting to copy the default template directly into the plugin's settings field for customization and it will not accept the default as written. Removing the {% trim %}
and {% endtrim
%}` allows the default template to be usable.
PS - it sure would be nice to have the default template to just be actual default editable text. Right now, as soon as you make modifications in the plugin settings, it erases the default value - causing users to have to completely reconstruct the template from scratch.
Method of syncing
- N/A
To Reproduce
- Go to plugin settings, type in the default file template and watch it turn red when you type
{% trim %}
Expected behaviour
The default template text should not have a trim block.
Screenshots
- N/A
Metadata
- OS: Windows
- Plugin version: latest
- Obsidian version: latest