If you do a search on google (other search engines are available) on "div inside li" or something like that you'll see that there have been arguments for a long time about whether it works and whether it then produces valid html.
One thing you could do for an unordered list is to add a bullet with just a space. That would help to preserve the structure of the list although having the main bullet and sub-bullet on the same line is not ideal and does look a bit odd:
* Item 1
* Item 2
* Sub-item 2a
[[code]]
code entered here
[[/code]]
*
* Sub-item 2b
* Item 3
* Sub-item 3a
* Sub-item 3b
[[code]]
code entered here
[[/code]]
*
* Sub-item 3c
* Item 4
* Item 5
However that doesn't work with a a numbered list as the numbering is re-set after the codeblock.
It's been two years now since I posted about this issue, and still no resolution.
There are many wishes that we have that have taken at least as long. I can't see a wish for this in the official bugs and wishes site at http://feedback.wikidot.com so you might wish to add it there. I think it should go in as a wish rather than a bug.
Seems support/fixes on this site is non-existing
No, that's just not correct. You get support on the community site here usually within a few minutes, rarely longer than a few hours, and it is unusual for questions not to be answered or solutions suggested.
Wikidot are very good at fixing bugs quickly. They take much longer to deliver new features and responses to wishes which can be frustrating, but there's not a lot the community admins and gurus can do about that.