var index = parseInt('{{cloze::Symbol Index}}'.replace(/[\[\]]/g, '').match(/<span.*>([0-9]+)<\/span>/)[1])
With the Cloze field looking something like:
{{c1::1::1}}{{c2::2::2}}{{c3::3::3}}{{c4::4::4}}
To basically get an integer value corresponding to the current Cloze deletion index shown during review. This index was then used to index various arrays in the other fields.
Problem is that this used to work on ankimobile and anki desktop, but now only work on anki desktop with <2.54 with ankimobile always displaying whatever the max index is (i.e. in this case 4).
ankimobile is latest from App Store
And anki desktop is using 2.54. Latest anki desktop, however also does not work.
Was looking at release notes and didn’t see anything on what changes if any are required to migrate templates for cloze. Can you please advise?