joplin / plugin-templates

Create templates in Joplin and use them to create new notes and todos.
MIT License
163 stars 23 forks source link

Allow use of "* * *" as delimiter for special variables #90

Open ivansaurio opened 3 months ago

ivansaurio commented 3 months ago

I have the following template:

---

project: dropdown(TEST1,TEST2,TEST3)  
template_title: {{ date }} - {{ project }}  
template_tags: TESTTAG, {{ project }}

---

# {{date}}
{{project}}:

If I switch to the wysiwyg editor and make some modification, then all the "---" get replaced with " *", breaking the variables in the template

The only installed plugins are templates and backup (probably not related to the issue)

I guess the easy way to fix this could be to allow " *" as the special variables delimiter HERE

JackGruber commented 3 months ago

There is a Joplin option to protect certain code from conversion. I'll have to take a closer look again