vanakat / zotero-link

Obsidian plugin to insert link to Zotero item
MIT License
41 stars 5 forks source link

Some characters in titles are not url decoded #17

Closed jonasengelmann closed 3 weeks ago

jonasengelmann commented 1 month ago

Thanks for this great plugin!

I have been using it now for a while and I noticed that some characters are not url decoded. For example title containing an apostrophe or an ampersand are still displayed in their url-escaped form, although they are correctly shown in the search window.

MunGell commented 3 weeks ago

Hi @jonasengelmann

This is a limitation of the templating engine, as a quick fix for your case you can use "filters" like this:

{{ title | safe }}

This way template engine will not escape characters and will output text as is.

I will work on finding a long-term fix for this, but this change in your template should be forward compatible.

jonasengelmann commented 3 weeks ago

Thanks for your answer and suggestion @MunGell, this works great!