anki icon indicating copy to clipboard operation
anki copied to clipboard

"Back template has a problem"

Open kayx23 opened this issue 4 years ago • 6 comments

Hello there, I downloaded and opened the .apkg. The two cards were imported into "Themes" but when I tried to view the cards, they show

Back template has a problem: Found '⁨{{! Anki only}}⁩', but there is no field called '⁨! Anki only⁩'

Is there anything I can do to fix it?

Thanks!

kayx23 avatar Jul 19 '20 03:07 kayx23

had the same problem, have you found the solution yet?

abdulrcs avatar Sep 12 '20 01:09 abdulrcs

had the same problem too

readybuilderone avatar Sep 28 '20 03:09 readybuilderone

I had the same issue. I just deleted '⁨{{! Anki only}}⁩' and it did the job

Goratra avatar Oct 16 '20 10:10 Goratra

For an explanation: up until last year, probably 2.1.28, anki used a tool called mustache, and "{{!foo}}" was interpreted as a comment. This was removed, and anyway, as the author seems to know, it is useless since html allow for comments <!-- comment -->

Arthur-Milchior avatar Jan 15 '21 08:01 Arthur-Milchior

Note that {{{foo}}} is not valid anymore, this now leave a trailing }

Arthur-Milchior avatar Jan 15 '21 08:01 Arthur-Milchior

Would fixing this be as simple as removing the use of {{{triple braces}}} and {{! brace comments}} from files in https://github.com/badlydrawnrob/anki/tree/8a1b6f75bad54131a58485538a0b217966238d75/source/themes/cards?

peter-moran avatar May 19 '21 21:05 peter-moran