diff options
Diffstat (limited to 'ext/data/templates')
-rw-r--r-- | ext/data/templates/anki-field-templates-upgrade-v27.handlebars | 21 | ||||
-rw-r--r-- | ext/data/templates/default-anki-field-templates.handlebars | 4 |
2 files changed, 23 insertions, 2 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}} +{{>>>>>>>}} diff --git a/ext/data/templates/default-anki-field-templates.handlebars b/ext/data/templates/default-anki-field-templates.handlebars index 2720b75b..049cd56d 100644 --- a/ext/data/templates/default-anki-field-templates.handlebars +++ b/ext/data/templates/default-anki-field-templates.handlebars @@ -395,9 +395,9 @@ {{#*inline "sentence-furigana"}} {{~#if definition.cloze~}} {{~#if (hasMedia "textFurigana" definition.cloze.sentence)~}} - {{getMedia "textFurigana" definition.cloze.sentence escape=false}} + {{{getMedia "textFurigana" definition.cloze.sentence escape=false}}} {{~else~}} - {{definition.cloze.sentence}} + {{{definition.cloze.sentence}}} {{~/if~}} {{~/if~}} {{/inline}} |