Formatting issue with multi line cloze paints whole document blue

Are you adding the cloze deletions manually? It’s possible to create invalid HTML when doing that, but if I take the text

line 1

line 2
line 3

and make a cloze deletion on the first line, it displays correctly.