Creating new cloze caption on styled text strips styling

Anki 2.1.58 Qt6 Linux

To recreate:

  1. Enter some text in a cloze field
  2. Mark the text and make it (say) italic
  3. Mark the text again and press Ctrl+Shift+C to create a new cloze
  4. Italics are removed, but cloze are added

This only happens when the whole being made a cloze is inside the same style tags, but for me it’s a bit annoying since I often style cards first and create cloze afterwards.

It’s not a bug (happened since 2.1.3x+), but can’t say for certain why this feature exists

It can lead to invalid HTML if the formatting is kept and happens to start or end outside the selection.

2 Likes

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