Right now, cloze cards automatically prepend and append some html for styling. This works great for the most common use case. But there are some cases where you would want to have just plain replacement or different html. For example, trying cloze deletions inside an svg breaks it because of the inserted span tags.
The suggestion:
A way for custom cloze note types to set these parameters:
active_prefix, active_suffix, default_replacement, inactive_prefix, inactive_suffix
The current default cloze note type would be a subtype with the parameters set as:
active_prefix: <span class="cloze" data-cloze="$content" data-ordinal="$n">
active_suffix: </span>
default_replacement: [...]
inactive_prefix: <span class="cloze-inactive" data-ordinal="$n">
inactive_suffix: </span>
Where $content and $n would be replaced with the deleted text and the cloze number respectively.
I believe this would make cloze types far more versatile and make it possible to use cloze deletions in a lot more contexts. And it’s fully backwards compatible since any current cloze type gets the default values and functions identically to how it currently does.