Even if you have a literal \n, as opposed to a <br> tag, this still gets interpreted by cloze-overlapper as a newline, and thus it creates an extra cloze deletion card. We do not want this, thus we cannot add extra newlines willy-nilly via html-tidy.
Just another reason to make the whole thing idempotent.
The HTML is the single-source-of-truth. Every newline you make in the note editor in Anki is converted to a <br> tag. We must convert the HTML in each field we parse into plaintext and then back again in a completely invertible way. This means we absolutely cannot add whitespace for readability.
We might be able to do something like this though:
### Front
a
###
### Back
b
###
Important to note that we can convert <br>s to literal newlines in the markdown (and should).
It is also possible that we could just fork cloze-overlapper and disable this newline behavior.
Even if you have a literal
\n
, as opposed to a<br>
tag, this still gets interpreted bycloze-overlapper
as a newline, and thus it creates an extra cloze deletion card. We do not want this, thus we cannot add extra newlines willy-nilly viahtml-tidy
.Just another reason to make the whole thing idempotent.
The HTML is the single-source-of-truth. Every newline you make in the note editor in Anki is converted to a
<br>
tag. We must convert the HTML in each field we parse into plaintext and then back again in a completely invertible way. This means we absolutely cannot add whitespace for readability.We might be able to do something like this though:
Important to note that we can convert
<br>
s to literal newlines in the markdown (and should).It is also possible that we could just fork
cloze-overlapper
and disable this newline behavior.