How does one add a onebox inside a list?

There’s no explicit rationale, it’s just that raw HTML is seen by markdown-it in a flat way, it doesn’t try to infer the nesting from tags being opened/closed.

Raw Html node

Top level onebox

Raw Html node