Bug with cloze encapsulating a list

{{c1::this is<br><ul><li>an example}}</li></ul><div>so you see what I mean</div>

or even

{{c1::this is<br><ul><li>an example.</li></ul><div>}}</div><div>so you see what I mean</div>

The result is the same:

Screenshot 2023-01-21 130322

A related problem may be this: <div></div> makes it difficult to create matjax underneath list