ripose-jp / Memento

An mpv-based video player for studying Japanese
https://ripose-jp.github.io/Memento/
GNU General Public License v2.0
472 stars 22 forks source link

Memento fills empty fields with html #203

Closed BigBoyBarney closed 6 months ago

BigBoyBarney commented 6 months ago

When adding {{pitch}} to a note, if the word has no pitch entry in the dictionary, like 行き成り, memento will still fill the pitch field in Anki with image This leads to conditional replacement not working.

Most other fields, such as reading, are filled without extra the html syntax. image

Would it be possible to do the same for pitch, if it's empty?

BigBoyBarney commented 6 months ago

Amazing stuff, thank you for the quick fix!