marcjulianschwarz / obsidian-podcast-note

A plugin for the note taking app Obsidian that lets you add podcast meta data to your notes.
https://www.marc-julian.de
MIT License
69 stars 6 forks source link

Not handling multiple occurrences of same placeholder #7

Closed swehba closed 3 years ago

swehba commented 3 years ago

If in the custom template for the plugin (see its config page), you specify the same placeholder — say {{Title}} or {{Date}} multiple times, the first occurrence of each placeholder is substituted for just fine, but not the subsequent occurrences.

One other unusually behavior...I have two occurrence of {{Date}} in my template. The second occurrence doesn't get replaced at all as described above. However, the first occurrence gets replace with the date and time instead of just the date. Maybe that's the expected behavior, but I would have expected just the date since that is what the standard Obsidian {{date}} placeholder does.

marcjulianschwarz commented 3 years ago

Thank your for pointing this out. Will introduce a new {{Time}} placeholder in the next release and fix the bug with multiple occurrences.

marcjulianschwarz commented 3 years ago

The new release has been published. It now contains a placeholder {{Date}} and {{Timestamp}} which both work as expected.