Nested cloze feature not working with "type:cloze" notetype

Hello there :slight_smile:

Anki 2.1.56 added the possibility of using nested clozes (Release 2.1.56 · ankitects/anki · GitHub). These seem to work fine with the standard cloze deletion notetype.

They don’t however seem to work correctly if you use {{type:cloze:text}} within the card template to prompt you for typing in the enclozed text.

Using the example from the documentation

{{c1::Canberra was {{c2::founded}}}} in 1913)

Anki shows

Canberra was {{c2

as the answer to be typed, instead of

Canberra was founded




Front Template

{{cloze:Text}}<br><br>

{{type:cloze:Text}}

Back Template

{{cloze:Text}}<br><br>  

{{type:cloze:Text}}<br><br>

{{#Extra}}{{Extra}}<br><br>{{/Extra}}

{{#Tags}}<b>Tags:</b> {{Tags}}{{/Tags}}

Styling

.card { 
   font-family: arial; 
   font-size: 20px; 
   text-align: center; 
   color: black; 
   background-color: white;
 }  

.cloze { 
   font-weight: bold; 
   color: blue;
 }

Anki Version
Version ⁨2.1.56 (07fd88dd)⁩
Python 3.9.15 Qt 6.4.0 PyQt 6.4.0

Operating System
Linux Mint 20.3

1 Like

I’ve logged this on Nested clozes not supported in type answer · Issue #2311 · ankitects/anki · GitHub

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.