diff options
author | Kuuuube <61125188+Kuuuube@users.noreply.github.com> | 2024-03-02 06:28:09 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-02 11:28:09 +0000 |
commit | 9577449e4bd2b7665e9161e50035393ef200205f (patch) | |
tree | d351e97ca87b1869216568ca03c9f19df5320697 /ext/data/templates/anki-field-templates-upgrade-v27.handlebars | |
parent | 98b11f794cd0fe828cc06d386e0b7126d5a387bb (diff) |
Fix sentence-furigana template (#733)
Diffstat (limited to 'ext/data/templates/anki-field-templates-upgrade-v27.handlebars')
-rw-r--r-- | ext/data/templates/anki-field-templates-upgrade-v27.handlebars | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/ext/data/templates/anki-field-templates-upgrade-v27.handlebars b/ext/data/templates/anki-field-templates-upgrade-v27.handlebars new file mode 100644 index 00000000..67dca143 --- /dev/null +++ b/ext/data/templates/anki-field-templates-upgrade-v27.handlebars @@ -0,0 +1,21 @@ +{{<<<<<<<}} +{{#*inline "sentence-furigana"}} + {{~#if definition.cloze~}} + {{~#if (hasMedia "textFurigana" definition.cloze.sentence)~}} + {{getMedia "textFurigana" definition.cloze.sentence escape=false}} + {{~else~}} + {{definition.cloze.sentence}} + {{~/if~}} + {{~/if~}} +{{/inline}} +{{=======}} +{{#*inline "sentence-furigana"}} + {{~#if definition.cloze~}} + {{~#if (hasMedia "textFurigana" definition.cloze.sentence)~}} + {{{getMedia "textFurigana" definition.cloze.sentence escape=false}}} + {{~else~}} + {{{definition.cloze.sentence}}} + {{~/if~}} + {{~/if~}} +{{/inline}} +{{>>>>>>>}} |