joplin / joplin/plugin-templates

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

Open
#90 1 comment 0 reactions 0 assignees View on GitHub
bug enhancement
Dominant language
TypeScript
Stars
207
Forks
40
Avg merge
7d 16h
Merged PRs (30d)
2

Description

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](https://github.com/joplin/plugin-templates/blob/d4b319f10d0db5717d575d7654395ce54cfdda29/src/parser.ts#L173)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.