ssricardo / anki-plugins

Contains a set of addons for the open source application Anki Desktop
95 stars 20 forks source link

The correct answer is not shown #144

Closed KotobaSuke closed 11 months ago

KotobaSuke commented 11 months ago

This addon works well in checking the answer I typed, but after I clicked the "Show Answer" botton, nothing is shown. For example, the front card is 1 + 1 = {{c1::2}} and what I expect is that 1 + 1 = 2 is shown after "Show Answer" is clicked. How could I solve this? Am I doing something wrong in coding?

Front side display (instant feedback disabled): image

Back side display (literally nothing): image

Front side code:

<div class=frontbg>
{{type:cloze:Question}}
</div>

Back side code:

<div class=frontbg>
{{type:cloze:Question}}
</div>

Styling:

.card {
 font-size: 50px;
 text-align: center;
 color: black;
 background: url("bg.jpg");
}

.frontbg {
 font-family: Ubuntu;
 background-color: #fff;
 border-radius: 7px;
 color: #99CCFF;
 position: relative;
 left: 0;
 font-size: 20px;
 padding-top: 15px;
 padding-bottom: 15px;
}

Addon config:

{
    "enable-new-filter": false,
    "experimental-asian-chars": false,
    "feedback-enabled": false,
    "feedback-ignore-accents": false,
    "feedback-ignore-case": false,
    "input-len-times": 62,
    "override-type-cloze": true
}

Anki version: 23.10.1

KotobaSuke commented 11 months ago

It solves by changing {{type:cloze:Question}} to {{cloze:Question}} on the back side.