Anki Forums

When I make a cloze with an HTML(SVG too) file, the text gets messy

r/Anki - When I make a cloze with an HTML(SVG too) file, the text gets messy

r/Anki - When I make a cloze with an HTML(SVG too) file, the text gets messy

I tried to put the cloze on the text before adding it to Anki. Same result.

Is there a way?
I already use I.O.

Hi,

can you share the HTML view?

Usually generating clozes by ctrl+shift+C deletes some code. I do have some problems when doing clozes with HTML code and sometimes I do have to edit it myself in HTML view, so HTML tags are balanced either inside or outside the cloze.

Mobile versions render the card differently than Desktop and this is why some differencies may occur with HTML code inside clozes for instance (or text bolding is not shown, etc). If the cloze is not found in ANki Desktop then is when the message appears saying that the card is empty.

On the other hand, I did never tried clozes in a svg. So I cannot say anything in that matter. You may want to split the card into several following the 20 basic rules of SRS.

4 Likes

Thank you
Got it
this file for example

https://drive.google.com/file/d/1N3qtb-RoCYTh8I2Z5Sv3xvBOXGo_0MCx/view?usp=sharing

https://drive.google.com/file/d/1-GYbSshhlrh44W7D6TWrBDy-l4yh3gv9/view?usp=sharing

Just tried out with inline svg and indeed it gets messy. I guess The toolkit Anki uses does not support clozing text tags among svg paths. I suggest to stick with IO for the time being.

3 Likes